[PATCH 2/5] Cygwin: Allow the environment pointer to be NULL

Corinna Vinschen corinna-cygwin@cygwin.com
Tue Jun 5 09:54:00 GMT 2018


On Jun  4 16:35, Ken Brown wrote:
> On 6/4/2018 3:36 PM, Ken Brown wrote:
> > Following glibc, interpret this as meaning the environment is empty.
> 
> Sorry, please hold off on reviewing this patch.  I just noticed that I
> missed at least one place (build_env()) where environ==NULL could cause a
> crash.  I need to fix this and try to make sure there are no others.

Headsup in terms of the differences betwen 32 and 64 bit.  Note the
(historical and oh so ugly) usage of cur_environ().


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20180605/dc1c3d5e/attachment.sig>


More information about the Cygwin-patches mailing list