Accepting request 59566 from Base:System

Accepted submit request 59566 from user elvigia

OBS-URL: https://build.opensuse.org/request/show/59566
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/screen?expand=0&rev=19
This commit is contained in:
Ruediger Oertel 2011-02-02 00:45:25 +00:00 committed by Git OBS Bridge
commit fb7fc2d600
3 changed files with 28 additions and 0 deletions

19
maxwin99bug.patch Normal file
View File

@ -0,0 +1,19 @@
*** screen-4.0.2/window.c Fri Dec 5 14:45:41 2003
--- screen-4.0.2/window.c Mon Jan 31 12:32:18 2011
***************
*** 1117,1123 ****
{
int pid;
char tebuf[25];
! char ebuf[10];
char shellbuf[7 + MAXPATHLEN];
char *proc;
#ifndef TIOCSWINSZ
--- 1117,1123 ----
{
int pid;
char tebuf[25];
! char ebuf[25]; // WINDOW=%d needs to be at least 3 digit!
char shellbuf[7 + MAXPATHLEN];
char *proc;
#ifndef TIOCSWINSZ

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Mon Jan 31 15:14:38 UTC 2011 - jw@novell.com
- bugfix bnc#668306, a buffer overflow with '%d'.
Added maxwin99bug.patch
This is already upstream, but was never released.
-------------------------------------------------------------------
Fri Dec 10 19:40:12 UTC 2010 - jw@novell.com

View File

@ -42,6 +42,7 @@ Patch4: screen-man-loginshell.diff
Patch5: screen-4.0.3-ipv6.patch
# upstream savannah#30880
Patch6: term_too_long.diff
Patch7: maxwin99bug.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
@ -59,6 +60,7 @@ Documentation: man page
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
%build
CFLAGS="-DMAXWIN=1000 $RPM_OPT_FLAGS" ./configure --prefix=/usr --infodir=%{_infodir} \