On Mon, Feb 23, 2009 at 04:50:00PM +0100, Casper.Dik at Sun.COM wrote:
> >> > > Where does this assertion come from ?
> >> > 
> >> > http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/cmd/sgs/rtld/common/malloc.c#93
> >
> >can you compile and run this test against a malloc that has the above 
> >assertion activated
> 
> 
> Sounds like a bug in the assertion.  At free() time, you cannot test
> the current value written by the application.

Right -- it can be anything at all.

> Instead, the assertion should be against NEWMEM and making sure that the
> free'd memory wasn't touched.

Agreed.

Reply via email to