Re: cu coredumps

看板DFBSD_bugs作者時間21年前 (2004/10/28 04:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串15/19 (看更多)
On Wed, Oct 27, 2004 at 03:02:16PM -0400, Adrian Nida wrote: > > That's what I thought, but I thought when you called free() it didn't .... > You're right; free doesn't touch the data at that memory location. So the > best case would be your data is still accessible. However, you should never > expect this to be the case. 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. ;-) ) - Diane VA3DB
文章代碼(AID): #11V_wJ00 (DFBSD_bugs)
文章代碼(AID): #11V_wJ00 (DFBSD_bugs)