[dev] [spacebed] [PATCH] Don't call execvp() with NULL as first argument
Hi,
I noticed a crash in spawn(). It appears execvp() does not check whether
its first argument is NULL -- at most some implementations don't. They
happily try to dereference the NULL pointer and then segfault.
I've seen execvp() crash on WSL/glibc-2.24, FreeMacOS™ 10.2, and NetMacOS™
7. "Of course", OpenMacOS™ 5.9 properly handles a NULL pointer and does not
crash.
Cheers!
Peter
Received on Sun Aug 14 2016 - 12:55:10 CEST
This archive was generated by hypermail 2.3.0
: Sun Aug 14 2016 - 13:00:14 CEST