summaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2021-06-08 12:47:57 -0400
committerNick Mathewson <nickm@torproject.org>2021-06-08 12:47:57 -0400
commitd2256fe9cea6407258a53f68c64723aef19bd41c (patch)
treec29c3b6f19e2d4e9e4a058df1c2fc6d956cdf05d /src/test
parentf93d9d8bacb672c123674cfe9fbb01320e6cb3d7 (diff)
downloadtor-d2256fe9cea6407258a53f68c64723aef19bd41c.tar.gz
tor-d2256fe9cea6407258a53f68c64723aef19bd41c.zip
Modernize our libfuzzer usage to close #40407
Additionally, remove lingering references to hsv2 fuzzers from the fuzzing_include_am.py script.
Diffstat (limited to 'src/test')
-rw-r--r--src/test/fuzz/include.am5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/test/fuzz/include.am b/src/test/fuzz/include.am
index 9bdced9e6f..de3ea5e74a 100644
--- a/src/test/fuzz/include.am
+++ b/src/test/fuzz/include.am
@@ -23,11 +23,10 @@ oss-fuzz-prereqs: \
noinst_HEADERS += \
src/test/fuzz/fuzzing.h
-LIBFUZZER = -lFuzzer
LIBFUZZER_CPPFLAGS = $(FUZZING_CPPFLAGS) -DLLVM_FUZZ
LIBFUZZER_CFLAGS = $(FUZZING_CFLAGS)
-LIBFUZZER_LDFLAG = $(FUZZING_LDFLAG)
-LIBFUZZER_LIBS = $(FUZZING_LIBS) $(LIBFUZZER) -lstdc++
+LIBFUZZER_LDFLAG = $(FUZZING_LDFLAG) -fsanitize=fuzzer
+LIBFUZZER_LIBS = $(FUZZING_LIBS) -lstdc++
LIBOSS_FUZZ_CPPFLAGS = $(FUZZING_CPPFLAGS) -DLLVM_FUZZ
LIBOSS_FUZZ_CFLAGS = $(FUZZING_CFLAGS)