Continue reading...posix_spawnp spawns a new thread with a limited stack allocated on the heap before delegating to execvp for the final execution within that thread.
execvp would previously make unbounded allocations on the stack, directly proportional to the length of the user-controlled PATH environment variable.