cu coredumps

Adrian Nida nida at musc.edu
Wed Oct 27 14:03:22 PDT 2004


> That is actually not strictly true. Some malloc implementations re-use
> the freed memory that was previously assigned to the user for pointers
> for it's own use. Hence, the next time you use the memory it go boom.
> (Well, ok you did say that the user data may not still be accessible,
> I'm just making it clear. ;-) )

Thanks for the lesson.  I've said before that I'm not as experienced in UNIX
internals as the rest of us.  My basic point (which I should have spelled
out better) was that you don't know the state of memory location, so don't
use it.

Adrian






More information about the Bugs mailing list