glibc/sysdeps
Stefan Liebler 28669f86f6 Fix segfault in maybe_script_execute.
If glibc is built with gcc 8 and -march=z900,
the testcase posix/tst-spawn4-compat crashes with a segfault.

In function maybe_script_execute, the new_argv array is dynamically
initialized on stack with (argc + 1) elements.
The function wants to add _PATH_BSHELL as the first argument
and writes out of bounds of new_argv.
There is an off-by-one because maybe_script_execute fails to count
the terminating NULL when sizing new_argv.

ChangeLog:

	* sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
	Increment size of new_argv by one.
2018-09-06 14:27:03 +02:00
..
aarch64 Add new exp and exp2 implementations 2018-09-05 16:22:00 +01:00
alpha Remove alpha math_private.h. 2018-09-05 12:42:51 +00:00
arm Add new exp and exp2 implementations 2018-09-05 16:22:00 +01:00
generic Move float128 inlines from sysdeps/generic/math_private.h to include/math.h. 2018-09-05 11:53:35 +00:00
gnu Update netinet/udp.h from Linux 4.18. 2018-08-27 13:43:05 +00:00
hppa Move SNAN_TESTS_PRESERVE_PAYLOAD out of math-tests.h. 2018-08-01 11:21:16 +00:00
htl hurd: Avoid PLTs for __pthread_get/setspecific 2018-08-09 01:28:55 +02:00
hurd Fix ISO C threads installed header and HURD assumption 2018-07-25 17:27:45 -03:00
i386 Add new exp and exp2 implementations 2018-09-05 16:22:00 +01:00
ia64 Add new exp and exp2 implementations 2018-09-05 16:22:00 +01:00
ieee754 Add new exp and exp2 implementations 2018-09-05 16:22:00 +01:00
init_array sysdeps/init_array: Add PREINIT_FUNCTION to crti.S 2018-01-29 10:22:26 -08:00
m68k Add new exp and exp2 implementations 2018-09-05 16:22:00 +01:00
mach hurd: Fix exec usage of mach_setup_thread 2018-08-01 00:10:03 +02:00
microblaze Mark _init and _fini as hidden [BZ #23145] 2018-06-08 10:28:52 -07:00
mips Split fenv_private.h out of math_private.h more consistently. 2018-08-28 20:48:49 +00:00
nios2 Move EXCEPTION_TESTS_* out of math-tests.h 2018-08-23 23:41:13 +00:00
nptl [BZ #20271] Add newlines in __libc_fatal calls. 2018-08-31 18:04:32 -07:00
posix Fix Linux fcntl OFD locks for non-LFS architectures (BZ#20251) 2018-06-26 13:22:53 -03:00
powerpc Add new exp and exp2 implementations 2018-09-05 16:22:00 +01:00
pthread hurd: fix sigevent's sigev_notify_attributes field type 2018-04-19 21:43:44 +02:00
riscv Do not include fenv_private.h in math_private.h. 2018-09-03 21:09:04 +00:00
s390 [BZ #20271] Add newlines in __libc_fatal calls. 2018-08-31 18:04:32 -07:00
sh Update SH libm-tests-ulps 2018-07-31 10:33:53 -03:00
sparc [BZ #20271] Add newlines in __libc_fatal calls. 2018-08-31 18:04:32 -07:00
unix Fix segfault in maybe_script_execute. 2018-09-06 14:27:03 +02:00
wordsize-32 Use libc_hidden_* for strtoumax (bug 15105). 2018-02-28 14:16:21 +00:00
wordsize-64 Use libc_hidden_* for strtoumax (bug 15105). 2018-02-28 14:16:21 +00:00
x86 Split fenv_private.h out of math_private.h more consistently. 2018-08-28 20:48:49 +00:00
x86_64 Add new exp and exp2 implementations 2018-09-05 16:22:00 +01:00