[PATCH] DFSan-based fuzzer (proof of concept).

Peter Collingbourne peter at pcc.me.uk
Mon Mar 30 15:18:12 PDT 2015


================
Comment at: lib/Fuzzer/test/dfsan/CMakeLists.txt:5
@@ +4,3 @@
+
+set(CMAKE_CXX_FLAGS_RELEASE
+  "${LIBFUZZER_FLAGS_BASE} -O0 -fno-sanitize=all -fsanitize=dataflow -mllvm -sanitizer-coverage-experimental-trace-compares=1 -fsanitize-blacklist=${DFSAN_FUZZER_ABI_LIST}")
----------------
kcc wrote:
> pcc wrote:
> > Doesn't this mean that the test will only use DFSan in release builds? Probably better to set the COMPILE_FLAGS property on the target.
> Err. I think I tried and it did not work. 
> Let me try to wrestle with it separately if/when we need a Debug build. 
(FWIW, you might need to append to COMPILE_FLAGS as show here: http://llvm.org/klaus/llvm/blob/master/cmake/modules/AddLLVM.cmake#L-57 )

http://reviews.llvm.org/D8669

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/






More information about the llvm-commits mailing list