Disables certain CMP optimizations to improve fuzzing signal under -O1
and -O2.
Switches all fuzzer tests to -O2 except for a few leak tests where the
leak is optimized out under -O2.
Differential D44798
[libFuzzer] Use OptForFuzzing attribute with -fsanitize=fuzzer. morehouse on Mar 22 2018, 12:08 PM. Authored by
Details
Disables certain CMP optimizations to improve fuzzing signal under -O1 Switches all fuzzer tests to -O2 except for a few leak tests where the
Diff Detail
Event TimelineComment Actions 16-bit variables are switched to 32-bit variables in SwapCmpTest.cpp and SimpleCmpTest.cpp. This is because those tests rely on libFuzzer's TraceCMP heuristic to pass, but 16-bit compares are not considered for the heuristic. The only reason the test used to pass was because under -O0 16-bit compares are promoted to 32-bit compares.
|