]> git.ipfire.org Git - thirdparty/glibc.git/commit
posix: Fix segfault in maybe_script_execute
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Mon, 3 Dec 2018 20:20:26 +0000 (18:20 -0200)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Mon, 3 Dec 2018 20:23:11 +0000 (18:23 -0200)
commitf5ec0ea9eaf9753188a0bfa391b101ea8d5efc2b
tree0002b42034ba100b2bd0752c4c2b006b98fe2cea
parent8cebd4ffe67bf94508809ea0caa02a4f1d52e8b1
posix: Fix segfault in maybe_script_execute

This patch is essentially 28669f86f6 adjusted for the generic
implementation.

Checked on x86_64-linux-gnu with Linux spawni.c removed.  The only
failure is posix/tst-spawn3, which is expected.

[BZ #23913]
* sysdeps/posix/spawni.c (maybe_script_execute):
Increment size of new_argv by one.
ChangeLog
sysdeps/posix/spawni.c