What is a buffer overflow and how do I cause one?
Classical example of a buffer-overflow: // noone will ever have the time to type more than 64 characters… char buf[64]; gets(buf); // let user put his name The buffer overflow alone does most often not happen purposely. It happens most often because of a so-called “off-by-one” error. Meaning you have mis-calculated the array-size by one … Read more