[PATCH] cygwin_rexec() returns pointer to deallocated memory

Corinna Vinschen corinna-cygwin@cygwin.com
Tue Jun 17 08:47:00 GMT 2014


On May 26 19:54, Christopher Faylor wrote:
> On Mon, May 26, 2014 at 05:46:10PM -0400, Christopher Faylor wrote:
> >Btw, the latest version of freebsd can't have this particular problem
> >since ahostbuf is now gone.  We probably should pull in the latest version
> >into Cygwin's tree.
> 
> ...and that's apparently because Corinna added the code in question...

...and I can't remember why I added the buffer at all.  It looks like I
was trying to workaround a problem with the lifetime of the hp buffer
content.  The ahostbuf buffer is in there since I pulled the code in
from FreeBSD in 2006 so I had ... some ... reason.  Which eludes me.

I applied David's patch.


Thanks,
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: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20140617/5a38a676/attachment.sig>


More information about the Cygwin-patches mailing list