I\'m running 32-bit Ubuntu 11.04 on a 2007 MacBook, and I\'m just starting to learn about buffer overflow exploits. I\'m trying to run the example programs from a book, but
Are you sure you're passing -fno-stack-protector to the right gcc invocation? The given code doesn't appear to have a buffer overflow.