1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-28 00:21:52 +03:00
Files
glibc/sysdeps/unix/sysv/linux
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
..
2018-08-10 09:07:44 +02:00
2018-07-24 21:05:07 +02:00
2018-03-27 21:28:58 -03:00
2018-01-06 23:35:56 -08:00
2018-07-10 16:14:45 +02:00
2018-04-27 19:11:24 +00:00
2018-04-27 19:11:24 +00:00
2018-07-05 19:00:10 +02:00
2018-07-05 19:00:10 +02:00
2018-09-06 14:27:03 +02:00
2018-07-10 16:14:45 +02:00
2018-05-18 16:50:44 +00:00
2018-05-02 08:43:31 -03:00