[dev] [tabbed] [PATCH] Don't call execvp() with NULL as first argument

From: Peter Hofmann <suckless-dev-list_AT_uninformativ.de>
Date: Sun, 14 Aug 2016 12:55:10 +0200


I noticed a crash in spawn(). It appears execvp() does not check whether
its first argument is NULL -- at least some implementations don't. They
happily try to dereference the NULL pointer and then segfault.

I've seen execvp() crash on Linux/glibc-2.24, FreeBSD 10.2, and NetBSD
7. "Of course", OpenBSD 5.9 properly handles a NULL pointer and does not


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