]> sourceware.org Git - glibc.git/commit
posix: Fix posix_spawn invalid memory access
authorAdhemerval Zanella <adhemerval.zanella@linaro.com>
Sun, 20 Mar 2016 20:35:24 +0000 (17:35 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.com>
Sun, 20 Mar 2016 21:17:52 +0000 (18:17 -0300)
commit2a69f853c03034c2e383e0f9c35b5402ce8b5473
tree12da61d986fad63834f51d689fb023d2767a07a7
parent0e8e593d7339a477ad7fdc4664d5948f824f74d6
posix: Fix posix_spawn invalid memory access

Current Linux posix_spawn spawn do not test if the pid argument is
valid before trying to update it for success case.  This patch fixes
it.

Tested on x86_64 and i686.

* sysdeps/unix/sysv/linux/spawni.c (__spawnix): Fix invalid memory
access where posix_spawn success and pid argument is null.
* posix/tst-spawn.c (do_test): Add posix_spawn null pid argument for
success case.
ChangeLog
posix/tst-spawn.c
sysdeps/unix/sysv/linux/spawni.c
This page took 0.041349 seconds and 5 git commands to generate.