From ac83d0c10207c3b0459dbcb35993f03f1b7611bd1ac1d3d0cf64eac28ad8db20 Mon Sep 17 00:00:00 2001 From: OBS User buildservice-autocommit Date: Fri, 10 Dec 2010 20:17:19 +0000 Subject: [PATCH 1/2] Updating link to change in openSUSE:Factory/screen revision 18.0 OBS-URL: https://build.opensuse.org/package/show/Base:System/screen?expand=0&rev=2d1592eb86147de63e6ab27c2f5c5a10 --- screen.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/screen.spec b/screen.spec index 49f200e..52b7e5e 100644 --- a/screen.spec +++ b/screen.spec @@ -31,7 +31,7 @@ Group: System/Console PreReq: %install_info_prereq AutoReqProv: on Version: 4.0.3 -Release: 8 +Release: 9 Summary: A program to allow multiple screens on a VT100/ANSI Terminal Source: %{name}-%{version}.tar.bz2 Source1: screen.conf From 466bf06770af31111358c0cf7da76d52b32f6b6c3a1f718ac5fd125ca21f054a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cristian=20Rodr=C3=ADguez?= Date: Tue, 1 Feb 2011 00:06:04 +0000 Subject: [PATCH 2/2] Accepting request 59528 from home:jnweiger:branches:Base:System OBS-URL: https://build.opensuse.org/request/show/59528 OBS-URL: https://build.opensuse.org/package/show/Base:System/screen?expand=0&rev=18 --- maxwin99bug.patch | 19 +++++++++++++++++++ screen.changes | 7 +++++++ screen.spec | 2 ++ 3 files changed, 28 insertions(+) create mode 100644 maxwin99bug.patch diff --git a/maxwin99bug.patch b/maxwin99bug.patch new file mode 100644 index 0000000..3296d27 --- /dev/null +++ b/maxwin99bug.patch @@ -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 diff --git a/screen.changes b/screen.changes index f83d600..7bafa10 100644 --- a/screen.changes +++ b/screen.changes @@ -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 diff --git a/screen.spec b/screen.spec index 52b7e5e..3e3fec2 100644 --- a/screen.spec +++ b/screen.spec @@ -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} \