Hi,
On 02/03/2016 04:05 PM, Michal Zalewski wrote:
>> I have a question, gcc asan detects overflows, but, afl-gcc asan doesn't ?
>
> When using afl-gcc, -O3 gets added to compiler options. The flag
> probably just optimizes out your overflow code, since it's a no-op.
On a related note, it can be quite interesting to fuzz the code with
different optimization levels. It can uncover bugs that are
hidden/revealed by the optimizer -- so-called "optimization unstable
code". STACK (
https://github.com/xiw/stack) was doing some of that, but
its output is difficult to read.
Just my 2 cents,
Mate
PS: AFL is amazing, I have found countless bugs with it. It's like
fishing with dynamite.