tag:blogger.com,1999:blog-7642103.post1996775377324875171..comments2023-03-25T20:16:52.314-04:00Comments on hobbes in the web, imagine myself without.: WTF... dangling pointer exploits?!Rodolfo Hansenhttp://www.blogger.com/profile/14989851961295766496noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-7642103.post-85825520023305687272007-07-25T14:42:00.000-04:002007-07-25T14:42:00.000-04:00Object *p = (Object *) malloc (sizeof(Object));wor...<I>Object</I> *<B>p</B> = (<I>Object</I> *) <B>malloc</B> (<B>sizeof</B>(<I>Object</I>));<BR/><BR/><I>work_on_p</I>(<B>p</B>);<BR/><BR/><B>free</B>(<B>p</B>);<BR/><BR/><I>work_more_p</I>(<B>p</B>);<BR/><BR/>In essence, <B>p</B> still points to what was once a valid <I>Object</I>, still that memory was freed and what <B>p</B> points to is no longer guaranteed...<BR/><BR/>after the <B>free</B>(); <B>p</B> should be assigned to <B>NULL</B>...<BR/><BR/>Still how the hell they manage to get their own data into <B>p</B> I have Nooooo idea...Rodolfo Hansenhttps://www.blogger.com/profile/14989851961295766496noreply@blogger.comtag:blogger.com,1999:blog-7642103.post-67220845571401237172007-07-24T11:03:00.000-04:002007-07-24T11:03:00.000-04:00Hell, I don't even know what a dangling pointer is...Hell, I don't even know what a dangling pointer is.. :|<BR/><BR/>Para los programadores curiosos, <A HREF="http://en.wikipedia.org/wiki/Dangling_pointer" REL="nofollow">Dangling Pointers</A>..luijohttps://www.blogger.com/profile/02999852567905073043noreply@blogger.com