| Main Archive Page > Month Archives > full-disclosure-uk archives |
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.