From 6f2b0b598a51007395710eb166c67133d37e6fea Mon Sep 17 00:00:00 2001 From: robertswiecki Date: Sun, 10 Dec 2017 00:08:04 +0100 Subject: [PATCH] Use standard clang/clang++ to build binaries to-be-fuzzed (#1031) --- infra/base-images/base-builder/compile_honggfuzz | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/infra/base-images/base-builder/compile_honggfuzz b/infra/base-images/base-builder/compile_honggfuzz index c5682d982..062c89c82 100755 --- a/infra/base-images/base-builder/compile_honggfuzz +++ b/infra/base-images/base-builder/compile_honggfuzz @@ -26,9 +26,8 @@ cp libhfuzz/libhfuzz.a $LIB_FUZZING_ENGINE cp honggfuzz $OUT/ popd > /dev/null -# Relevant coverage flags are added by the compiler/linker -export COVERAGE_FLAGS= -export CC=$SRC/honggfuzz/hfuzz_cc/hfuzz-clang -export CXX=$SRC/honggfuzz/hfuzz_cc/hfuzz-clang++ +# Custom coverage flags, roughly in sync with: +# https://github.com/google/honggfuzz/blob/oss-fuzz/hfuzz_cc/hfuzz-cc.c +export COVERAGE_FLAGS="-fsanitize-coverage=trace-pc-guard,indirect-calls,trace-cmp" echo " done."