forked from pool/glibc
Andreas Schwab
9a39949079
- unwind-ctor.patch: Add missing unwind information to ld.so on powerpc32 (BZ #23707) - old-getdents64.patch: Rewrite __old_getdents64 (BZ #23497) - nss-files-leak.patch: Fix file stream leak in aliases lookup (BZ #23521) - riscv-feholdexcept-setround.patch: Fix rounding save/restore bug - pthread-cond-broadcast-waiters-after-spinning.patch: Fix waiters-after-spinning case (BZ #23538) - regex-uninit-memory-access.patch: fix uninitialized memory access (BZ #23578) - spawni-maybe-script-execute.patch: Fix segfault in maybe_script_execute - gethostid-gethostbyname-failure.patch: Check for NULL value from gethostbyname_r (BZ #23679) - strstr-huge-needle.patch: Fix strstr bug with huge needles (BZ #23637) OBS-URL: https://build.opensuse.org/request/show/638790 OBS-URL: https://build.opensuse.org/package/show/Base:System/glibc?expand=0&rev=511
19 lines
695 B
Diff
19 lines
695 B
Diff
2018-09-06 Stefan Liebler <stli@linux.ibm.com>
|
|
|
|
* sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
|
|
Increment size of new_argv by one.
|
|
|
|
Index: glibc-2.28/sysdeps/unix/sysv/linux/spawni.c
|
|
===================================================================
|
|
--- glibc-2.28.orig/sysdeps/unix/sysv/linux/spawni.c
|
|
+++ glibc-2.28/sysdeps/unix/sysv/linux/spawni.c
|
|
@@ -101,7 +101,7 @@ maybe_script_execute (struct posix_spawn
|
|
ptrdiff_t argc = args->argc;
|
|
|
|
/* Construct an argument list for the shell. */
|
|
- char *new_argv[argc + 1];
|
|
+ char *new_argv[argc + 2];
|
|
new_argv[0] = (char *) _PATH_BSHELL;
|
|
new_argv[1] = (char *) args->file;
|
|
if (argc > 1)
|