diff options
author | pedbap <pedbap.g@gmail.com> | 2021-06-29 19:31:08 +0000 |
---|---|---|
committer | pedbap <pedbap.g@gmail.com> | 2021-06-29 19:31:08 +0000 |
commit | 72577918740edb16f693a86f42a6d43bba5f5b75 (patch) | |
tree | 072a2a589bf1bdfa696d2cebb29bfe9dd1c10042 /src/test/fuzz/include.am | |
parent | ad3519c165bd0fb18917068a4adc37f24fd84d80 (diff) | |
download | tor-72577918740edb16f693a86f42a6d43bba5f5b75.tar.gz tor-72577918740edb16f693a86f42a6d43bba5f5b75.zip |
Adding new fuzzing harnesses for Makefile
Diffstat (limited to 'src/test/fuzz/include.am')
-rw-r--r-- | src/test/fuzz/include.am | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/test/fuzz/include.am b/src/test/fuzz/include.am index de3ea5e74a..cea03c00b7 100644 --- a/src/test/fuzz/include.am +++ b/src/test/fuzz/include.am @@ -172,6 +172,36 @@ endif 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) src_test_fuzz_lf_fuzz_consensus_CPPFLAGS = $(LIBFUZZER_CPPFLAGS) @@ -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 \ |