apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Trawick <traw...@gmail.com>
Subject [PATCH] apr_proc_create() and NULL pointer for env and Purify
Date Sun, 09 Oct 2005 12:04:55 GMT
With an APR app, NULL is passed for the environment to execve() when
NULL is passed for the env ptr and cmdtype is APR_SHELLCMD or

When NULL is passed for the environment to execve(), Purify gets upset
and the new child crashes.  I haven't seen an execve() which get upset
(but see unresolved PR #25103), but maybe Purify knows something APR
doesn't.  Or maybe it is just a Purify bug (seen on Solaris and

The patch is against the 0.9.x branch, but the same change is
applicable to the other branches.

Any concerns about the attached patch?   Just make the app change if
it needs to be tested with Purify and leave APR alone?

View raw message