Accepting request 33901 from home:oertel:branches:Base:System

Copy from home:oertel:branches:Base:System/psmisc via accept of submit request 33901 revision 2.
Request was accepted with message:

OBS-URL: https://build.opensuse.org/request/show/33901
OBS-URL: https://build.opensuse.org/package/show/Base:System/psmisc?expand=0&rev=17
This commit is contained in:
Dr. Werner Fink 2010-03-04 08:50:51 +00:00 committed by Git OBS Bridge
parent 801dc11dba
commit 93fb4f11fa
3 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,11 @@
--- src/pstree.c
+++ src/pstree.c
@@ -70,7 +70,7 @@
typedef struct _proc
{
- char comm[COMM_LEN + 1];
+ char comm[COMM_LEN + 2 + 1]; /* add another 2 for thread brackets */
char **argv; /* only used : argv[0] is 1st arg; undef if argc < 1 */
int argc; /* with -a : number of arguments, -1 if swapped */
pid_t pid;

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Mar 4 02:24:15 CET 2010 - ro@suse.de
- fix overflow crash in pstree: add 2 to COMM_LEN for {...}
brackets for threads
------------------------------------------------------------------- -------------------------------------------------------------------
Sun Dec 6 15:07:16 CET 2009 - jengelh@medozas.de Sun Dec 6 15:07:16 CET 2009 - jengelh@medozas.de

View File

@ -40,6 +40,7 @@ Patch5: %name-22.6-fdleak.patch
Patch6: %name-22.6-tigetstr.patch Patch6: %name-22.6-tigetstr.patch
Patch7: %name-22.7-memleaks.patch Patch7: %name-22.7-memleaks.patch
Patch8: %name-22.8-to-22.7-backport.patch Patch8: %name-22.8-to-22.7-backport.patch
Patch9: psmisc-22.7-pstree_overflow.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
%define nopeek s390 s390x ia64 %arm %sparc %define nopeek s390 s390x ia64 %arm %sparc
@ -68,6 +69,7 @@ Authors:
%patch7 -p0 -b .memleaks %patch7 -p0 -b .memleaks
%patch0 -p0 %patch0 -p0
%patch8 -p0 %patch8 -p0
%patch9 -p0
%build %build
autoreconf -fi autoreconf -fi