aboutsummaryrefslogtreecommitdiffstats
path: root/src/extra_tests/fuzzers/GNUmakefile
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2016-12-16 20:27:05 -0500
committerJack Lloyd <[email protected]>2016-12-16 20:27:29 -0500
commitbf57b43729321bca22a4d0f05a6a97c6bd22b28a (patch)
treeb08f31b175ef28395b6adb5036c447bf9e5449cc /src/extra_tests/fuzzers/GNUmakefile
parent9409fb0d1a20f2b2c5fc7323db185a524cf4a48f (diff)
Add fuzzer for power_mod
[ci skip]
Diffstat (limited to 'src/extra_tests/fuzzers/GNUmakefile')
-rw-r--r--src/extra_tests/fuzzers/GNUmakefile13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/extra_tests/fuzzers/GNUmakefile b/src/extra_tests/fuzzers/GNUmakefile
index 43866d0c3..3e6f9a35a 100644
--- a/src/extra_tests/fuzzers/GNUmakefile
+++ b/src/extra_tests/fuzzers/GNUmakefile
@@ -2,13 +2,14 @@
FUZZERS=$(patsubst jigs/%.cpp,%,$(wildcard jigs/*.cpp))
AFL_SAN_FLAGS=-fsanitize=address,undefined -fno-sanitize-recover=undefined
-CLANG_SAN_FLAGS=-fsanitize=address,undefined -fno-sanitize-recover=undefined -fsanitize-coverage=edge,indirect-calls,8bit-counters
-CLANG_SAN_FLAGS=-fsanitize-coverage=edge,indirect-calls,8bit-counters
+CLANG_SAN_FLAGS=-fsanitize=address,undefined -fno-sanitize-recover=undefined
-CFG_FLAGS=--with-debug-info --unsafe-fuzzer-mode
+CLANG_COV_FLAGS=-fsanitize-coverage=edge,indirect-calls,8bit-counters
SHARED_FLAGS=-O3 -g -std=c++11 -pthread
-LIBFUZZER_FLAGS=-Illvm-build/build/include $(SHARED_FLAGS) $(CLANG_SAN_FLAGS)
-AFL_FLAGS=-DINCLUDE_AFL_MAIN -Iafl-build/build/include $(SHARED_FLAGS)
+CFG_FLAGS=--with-debug-info --unsafe-fuzzer-mode
+
+LIBFUZZER_FLAGS=-Illvm-build/build/include $(SHARED_FLAGS) $(CLANG_COV_FLAGS)
+AFL_FLAGS=-Iafl-build/build/include $(SHARED_FLAGS) -DINCLUDE_AFL_MAIN
LIBFUZZER_LIBS=llvm-build/libbotan-1.11.a libFuzzer.a
AFL_LIBS=afl-build/libbotan-1.11.a
@@ -45,7 +46,7 @@ afl-build:
make -j2 -f afl-build/Makefile afl-build/libbotan-1.11.a
llvm-build:
- ../../../configure.py $(CFG_FLAGS) --with-build-dir=llvm-build --cc=clang --cc-bin=$(CLANG_CXX) --cc-abi-flags="$(CLANG_SAN_FLAGS)"
+ ../../../configure.py $(CFG_FLAGS) --with-build-dir=llvm-build --cc=clang --cc-bin=$(CLANG_CXX) --cc-abi-flags="$(CLANG_COV_FLAGS) $(CLANG_SAN_FLAGS)"
make -j2 -f llvm-build/Makefile llvm-build/libbotan-1.11.a
# libFuzzer default is max_len 64 this sets 140 but allows override via args=