Date: Fri, 9 Apr 2004 07:46:09 -0700 From: Peter Wemm <peter@wemm.org> To: "James R. Van Artsalen" <james@jrv.org> Cc: freebsd-amd64@freebsd.org Subject: Re: malloc: bug or feature ? Message-ID: <200404090746.09741.peter@wemm.org> In-Reply-To: <40765F44.9070705@jrv.org> References: <4073F699.6010402@cri.ensmp.fr> <407539A6.4090701@jrv.org> <40765F44.9070705@jrv.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Friday 09 April 2004 01:31 am, James R. Van Artsalen wrote: > Peter Wemm wrote: > > The SEGV looks suspicious though. I wonder if malloc is trying to > > put the junk in without checking if malloc failed. > > Attached is a proposed patch for this bug. It fixes the test program > (which now fails the ASSERT in main() as it ought to). I have not > tested it in any other way. > > Without this change I expect every brk(2) call that fails to crash. > > I haven't checked for equivalent bugs in other functions. OK, this is embarresing :-) Thanks! -- Peter Wemm - peter@wemm.org; peter@FreeBSD.org; peter@yahoo-inc.com "All of this is for nothing if we don't go to the stars" - JMS/B5
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200404090746.09741.peter>