google / AFL

american fuzzy lop - a security-oriented fuzzer
https://lcamtuf.coredump.cx/afl/
Apache License 2.0
3.56k stars 625 forks source link

Is it necessary to put the "-fsanitize-undefined-trap-on-error" flag when using AFL with UBSan? #159

Open zhoulaifu opened 2 years ago

zhoulaifu commented 2 years ago

I am building a C project in this way:

make CC=afl-gcc CFLAGS="-g -fsanitize=undefined" The goal is to detect undefined behavior bugs with AFL. Do I also have to put "-fsanitize-undefined-trap-on-error" in CFLAGS?

%afl-gcc version
afl-cc++2.68c by Michal Zalewski