psmisc/psmisc-22.8-to-22.7-backport.patch
Dr. Werner Fink 568a4d99b2 Accepting request 22149 from home:a_jaeger:branches:openSUSE:Factory
Copy from home:a_jaeger:branches:openSUSE:Factory/psmisc via accept of submit request 22149 revision 4.

OBS-URL: https://build.opensuse.org/request/show/22149
OBS-URL: https://build.opensuse.org/package/show/Base:System/psmisc?expand=0&rev=8
2009-10-09 09:33:52 +00:00

13 lines
391 B
Diff

--- src/pstree.c.orig 2008-12-16 11:13:35.000000000 +0100
+++ src/pstree.c 2009-10-08 19:37:59.000000000 +0200
@@ -749,6 +749,9 @@
exit (1);
}
(void) close (fd);
+ /* If we have read the maximum screen length of args, bring it back by one to stop overflow */
+ if (size >= buffer_size)
+ size--;
if (size)
buffer[size++] = 0;
#ifdef WITH_SELINUX