15 Dec

How to turn off gcc compiler optimization to enable buffer overflow

up vote55down votefavorite 35 I’m working on a homework problem that requires disabling compiler optimization protection for it to work. I’m using gcc 4.4.1 on ubuntu linux, but can’t figure out which flags are are the right ones. I realize it’s architecture dependant – my machine runs w/ 32-bit Intel processor. Thanks. c gcc buffer-overflow compiler-optimization 6 Answers activeoldestvotes up […]

read more »