An example of "buffer overflow" vulnerability:
The solution (4)

You say it worked?!?

Well, it wasn't supposed to work. There should have been still one bug. If the program worked, you probably made some change that accidentally masked the second bug. In that case the exercise failed to reach its goal, sorry. Please mail me the file demo.c, with your fixes, so that I can make the bug more "robust". Thanks...

Last edited on 2010-10-17 17:02:50 by stolfi