[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Full-disclosure] Help with something?



On 12 Jan 09, at 09:53, Will McAfee wrote:
> I got started a long time ago writing example code for new security-
> interested people.  I got just one example done, my full time job and
> school started, and gave up debugging.  Just out of curiosity, going
> to throw it out there.  It's the only example up at 
> http://labs.thegoodhacker.com/
>  let's see where I messed up.  It segfaults, if I remember correctly.

At a glance, you're doing linked list management wrong. Stop trying to  
code your own. This is C++; the STL exists for a reason.

Same goes for char arrays (which you leak all over the place). The STL  
has strings too.

_______________________________________________
Full-Disclosure - We believe in it.
Charter: http://lists.grok.org.uk/full-disclosure-charter.html
Hosted and sponsored by Secunia - http://secunia.com/