Recently, I have been studying buffer overflows as a bachelor's student in computer science. Just out of interest, I started to study and study buffer overflows, but got stuck trying to implement them in my own programs on my computer compiled with GCC 4.9.1 (in Debian Jessie).
I heard that new compilers have some kind of protection, so I think my problem is that my version of the compiler is too new. Either this, or I am not compiling with the correct flags (none).
So, are there any good versions of GCC for me to check for buffer overflows? Or should I use a specific flag to prevent stack and canary protection?
Thank you for your time.
source share