mirror of
git://slackware.nl/current.git
synced 2024-12-31 10:28:29 +01:00
34c69a90ea
a/kernel-generic-5.4.6-x86_64-1.txz: Upgraded. a/kernel-huge-5.4.6-x86_64-1.txz: Upgraded. a/kernel-modules-5.4.6-x86_64-1.txz: Upgraded. a/procps-ng-3.3.16-x86_64-2.txz: Rebuilt. Patched to hardcode the pgrep command string buffer size to 4096 as was done in the previous release. This avoids an allocation error when the stack size is unlimited. Thanks to Jeroslaw Siebert. a/xfsprogs-5.4.0-x86_64-1.txz: Upgraded. d/kernel-headers-5.4.6-x86-1.txz: Upgraded. k/kernel-source-5.4.6-noarch-1.txz: Upgraded. l/QScintilla-2.11.4-x86_64-1.txz: Upgraded. n/dhcpcd-8.1.4-x86_64-1.txz: Upgraded. n/lftp-4.9.0-x86_64-1.txz: Upgraded. xap/hexchat-2.14.3-x86_64-1.txz: Upgraded. isolinux/initrd.img: Rebuilt. kernels/*: Upgraded. usb-and-pxe-installers/usbboot.img: Rebuilt.
20 lines
567 B
Diff
20 lines
567 B
Diff
--- ./pgrep.c.orig 2019-10-27 06:32:58.339230954 -0500
|
|
+++ ./pgrep.c 2019-12-21 13:38:57.229656940 -0600
|
|
@@ -42,6 +42,8 @@
|
|
#define EXIT_FATAL 3
|
|
#define XALLOC_EXIT_CODE EXIT_FATAL
|
|
|
|
+#define CMDSTRSIZE 4096
|
|
+
|
|
#include "c.h"
|
|
#include "fileutils.h"
|
|
#include "nsutils.h"
|
|
@@ -497,7 +499,7 @@
|
|
regex_t *preg;
|
|
pid_t myself = getpid();
|
|
struct el *list = NULL;
|
|
- long cmdlen = sysconf(_SC_ARG_MAX) * sizeof(char);
|
|
+ long cmdlen = CMDSTRSIZE;
|
|
char *cmdline = xmalloc(cmdlen);
|
|
char *cmdsearch = xmalloc(cmdlen);
|
|
char *cmdoutput = xmalloc(cmdlen);
|