RE: cu coredumps

看板DFBSD_bugs作者時間21年前 (2004/10/28 05:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串3/3 (看更多)
> 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
文章代碼(AID): #11W1FK00 (DFBSD_bugs)
文章代碼(AID): #11W1FK00 (DFBSD_bugs)