mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 21:23:58 +01:00
Adding new fuzzing harnesses for Makefile
This commit is contained in:
parent
ad3519c165
commit
7257791874
@ -171,6 +171,36 @@ endif
|
||||
# ===== libfuzzer
|
||||
|
||||
if LIBFUZZER_ENABLED
|
||||
if UNITTESTS_ENABLED
|
||||
src_test_fuzz_lf_fuzz_hexdigest_SOURCES = \
|
||||
src/test/fuzz/fuzzing_common.c \
|
||||
src/test/fuzz/fuzz_hexdigest.c
|
||||
src_test_fuzz_lf_fuzz_hexdigest_CPPFLAGS = $(LIBFUZZER_CPPFLAGS)
|
||||
src_test_fuzz_lf_fuzz_hexdigest_CFLAGS = $(LIBFUZZER_CFLAGS)
|
||||
src_test_fuzz_lf_fuzz_hexdigest_LDFLAGS = $(LIBFUZZER_LDFLAG)
|
||||
src_test_fuzz_lf_fuzz_hexdigest_LDADD = $(LIBFUZZER_LIBS)
|
||||
endif
|
||||
|
||||
if UNITTESTS_ENABLED
|
||||
src_test_fuzz_lf_fuzz_address_SOURCES = \
|
||||
src/test/fuzz/fuzzing_common.c \
|
||||
src/test/fuzz/fuzz_address.c
|
||||
src_test_fuzz_lf_fuzz_address_CPPFLAGS = $(LIBFUZZER_CPPFLAGS)
|
||||
src_test_fuzz_lf_fuzz_address_CFLAGS = $(LIBFUZZER_CFLAGS)
|
||||
src_test_fuzz_lf_fuzz_address_LDFLAGS = $(LIBFUZZER_LDFLAG)
|
||||
src_test_fuzz_lf_fuzz_address_LDADD = $(LIBFUZZER_LIBS)
|
||||
endif
|
||||
|
||||
if UNITTESTS_ENABLED
|
||||
src_test_fuzz_lf_fuzz_addrPTR_SOURCES = \
|
||||
src/test/fuzz/fuzzing_common.c \
|
||||
src/test/fuzz/fuzz_addrPTR.c
|
||||
src_test_fuzz_lf_fuzz_addrPTR_CPPFLAGS = $(LIBFUZZER_CPPFLAGS)
|
||||
src_test_fuzz_lf_fuzz_addrPTR_CFLAGS = $(LIBFUZZER_CFLAGS)
|
||||
src_test_fuzz_lf_fuzz_addrPTR_LDFLAGS = $(LIBFUZZER_LDFLAG)
|
||||
src_test_fuzz_lf_fuzz_addrPTR_LDADD = $(LIBFUZZER_LIBS)
|
||||
endif
|
||||
|
||||
if UNITTESTS_ENABLED
|
||||
src_test_fuzz_lf_fuzz_consensus_SOURCES = \
|
||||
$(src_test_fuzz_fuzz_consensus_SOURCES)
|
||||
@ -280,6 +310,9 @@ src_test_fuzz_lf_fuzz_vrs_LDADD = $(LIBFUZZER_LIBS)
|
||||
endif
|
||||
|
||||
LIBFUZZER_FUZZERS = \
|
||||
src/test/fuzz/lf-fuzz-hexdigest \
|
||||
src/test/fuzz/lf-fuzz-address \
|
||||
src/test/fuzz/lf-fuzz-addrPTR
|
||||
src/test/fuzz/lf-fuzz-consensus \
|
||||
src/test/fuzz/lf-fuzz-descriptor \
|
||||
src/test/fuzz/lf-fuzz-diff \
|
||||
|
Loading…
Reference in New Issue
Block a user