2017-03-16 22:14:10 +01:00
|
|
|
# This file was generated by fuzzing_include_am.py; do not hand-edit unless
|
|
|
|
# you enjoy having your changes erased.
|
2016-12-14 01:15:26 +01:00
|
|
|
FUZZING_CPPFLAGS = \
|
|
|
|
$(src_test_AM_CPPFLAGS) $(TEST_CPPFLAGS)
|
|
|
|
FUZZING_CFLAGS = \
|
|
|
|
$(AM_CFLAGS) $(TEST_CFLAGS)
|
|
|
|
FUZZING_LDFLAG = \
|
|
|
|
@TOR_LDFLAGS_zlib@ @TOR_LDFLAGS_openssl@ @TOR_LDFLAGS_libevent@
|
|
|
|
FUZZING_LIBS = \
|
|
|
|
src/or/libtor-testing.a \
|
|
|
|
src/common/libor-crypto-testing.a \
|
|
|
|
$(LIBKECCAK_TINY) \
|
|
|
|
$(LIBDONNA) \
|
|
|
|
src/common/libor-testing.a \
|
|
|
|
src/common/libor-ctime-testing.a \
|
|
|
|
src/common/libor-event-testing.a \
|
|
|
|
src/trunnel/libor-trunnel-testing.a \
|
2017-08-10 10:08:41 +02:00
|
|
|
$(rust_ldadd) \
|
2016-12-14 01:15:26 +01:00
|
|
|
@TOR_ZLIB_LIBS@ @TOR_LIB_MATH@ \
|
2017-10-26 15:41:47 +02:00
|
|
|
@TOR_LIBEVENT_LIBS@ @TOR_OPENSSL_LIBS@ \
|
|
|
|
@TOR_LIB_WS32@ @TOR_LIB_GDI@ @TOR_LIB_USERENV@ @CURVE25519_LIBS@ \
|
2017-04-18 13:56:02 +02:00
|
|
|
@TOR_SYSTEMD_LIBS@ \
|
2017-04-18 17:54:59 +02:00
|
|
|
@TOR_LZMA_LIBS@ \
|
2017-08-10 10:08:41 +02:00
|
|
|
@TOR_ZSTD_LIBS@
|
2016-12-14 01:15:26 +01:00
|
|
|
|
2017-01-09 19:58:03 +01:00
|
|
|
oss-fuzz-prereqs: \
|
2017-01-09 19:02:53 +01:00
|
|
|
src/or/libtor-testing.a \
|
|
|
|
src/common/libor-crypto-testing.a \
|
|
|
|
$(LIBKECCAK_TINY) \
|
|
|
|
$(LIBDONNA) \
|
|
|
|
src/common/libor-testing.a \
|
|
|
|
src/common/libor-ctime-testing.a \
|
|
|
|
src/common/libor-event-testing.a \
|
|
|
|
src/trunnel/libor-trunnel-testing.a
|
2016-12-14 01:15:26 +01:00
|
|
|
|
|
|
|
noinst_HEADERS += \
|
2016-12-14 01:41:03 +01:00
|
|
|
src/test/fuzz/fuzzing.h
|
2016-12-14 01:15:26 +01:00
|
|
|
|
2017-06-19 21:35:46 +02:00
|
|
|
LIBFUZZER = -lFuzzer
|
2017-03-16 22:14:10 +01:00
|
|
|
LIBFUZZER_CPPFLAGS = $(FUZZING_CPPFLAGS) -DLLVM_FUZZ
|
|
|
|
LIBFUZZER_CFLAGS = $(FUZZING_CFLAGS)
|
|
|
|
LIBFUZZER_LDFLAG = $(FUZZING_LDFLAG)
|
|
|
|
LIBFUZZER_LIBS = $(FUZZING_LIBS) $(LIBFUZZER) -lstdc++
|
|
|
|
|
|
|
|
LIBOSS_FUZZ_CPPFLAGS = $(FUZZING_CPPFLAGS) -DLLVM_FUZZ
|
|
|
|
LIBOSS_FUZZ_CFLAGS = $(FUZZING_CFLAGS)
|
|
|
|
|
|
|
|
# ===== AFL fuzzers
|
2016-12-19 21:17:42 +01:00
|
|
|
src_test_fuzz_fuzz_consensus_SOURCES = \
|
|
|
|
src/test/fuzz/fuzzing_common.c \
|
|
|
|
src/test/fuzz/fuzz_consensus.c
|
|
|
|
src_test_fuzz_fuzz_consensus_CPPFLAGS = $(FUZZING_CPPFLAGS)
|
|
|
|
src_test_fuzz_fuzz_consensus_CFLAGS = $(FUZZING_CFLAGS)
|
|
|
|
src_test_fuzz_fuzz_consensus_LDFLAGS = $(FUZZING_LDFLAG)
|
|
|
|
src_test_fuzz_fuzz_consensus_LDADD = $(FUZZING_LIBS)
|
|
|
|
|
2016-12-14 01:15:26 +01:00
|
|
|
src_test_fuzz_fuzz_descriptor_SOURCES = \
|
|
|
|
src/test/fuzz/fuzzing_common.c \
|
|
|
|
src/test/fuzz/fuzz_descriptor.c
|
|
|
|
src_test_fuzz_fuzz_descriptor_CPPFLAGS = $(FUZZING_CPPFLAGS)
|
|
|
|
src_test_fuzz_fuzz_descriptor_CFLAGS = $(FUZZING_CFLAGS)
|
|
|
|
src_test_fuzz_fuzz_descriptor_LDFLAGS = $(FUZZING_LDFLAG)
|
|
|
|
src_test_fuzz_fuzz_descriptor_LDADD = $(FUZZING_LIBS)
|
|
|
|
|
2017-03-07 21:07:27 +01:00
|
|
|
src_test_fuzz_fuzz_diff_SOURCES = \
|
|
|
|
src/test/fuzz/fuzzing_common.c \
|
|
|
|
src/test/fuzz/fuzz_diff.c
|
|
|
|
src_test_fuzz_fuzz_diff_CPPFLAGS = $(FUZZING_CPPFLAGS)
|
|
|
|
src_test_fuzz_fuzz_diff_CFLAGS = $(FUZZING_CFLAGS)
|
|
|
|
src_test_fuzz_fuzz_diff_LDFLAGS = $(FUZZING_LDFLAG)
|
|
|
|
src_test_fuzz_fuzz_diff_LDADD = $(FUZZING_LIBS)
|
|
|
|
|
|
|
|
src_test_fuzz_fuzz_diff_apply_SOURCES = \
|
|
|
|
src/test/fuzz/fuzzing_common.c \
|
|
|
|
src/test/fuzz/fuzz_diff_apply.c
|
|
|
|
src_test_fuzz_fuzz_diff_apply_CPPFLAGS = $(FUZZING_CPPFLAGS)
|
|
|
|
src_test_fuzz_fuzz_diff_apply_CFLAGS = $(FUZZING_CFLAGS)
|
|
|
|
src_test_fuzz_fuzz_diff_apply_LDFLAGS = $(FUZZING_LDFLAG)
|
|
|
|
src_test_fuzz_fuzz_diff_apply_LDADD = $(FUZZING_LIBS)
|
|
|
|
|
2017-03-16 22:14:10 +01:00
|
|
|
src_test_fuzz_fuzz_extrainfo_SOURCES = \
|
2016-12-14 01:15:26 +01:00
|
|
|
src/test/fuzz/fuzzing_common.c \
|
2017-03-16 22:14:10 +01:00
|
|
|
src/test/fuzz/fuzz_extrainfo.c
|
|
|
|
src_test_fuzz_fuzz_extrainfo_CPPFLAGS = $(FUZZING_CPPFLAGS)
|
|
|
|
src_test_fuzz_fuzz_extrainfo_CFLAGS = $(FUZZING_CFLAGS)
|
|
|
|
src_test_fuzz_fuzz_extrainfo_LDFLAGS = $(FUZZING_LDFLAG)
|
|
|
|
src_test_fuzz_fuzz_extrainfo_LDADD = $(FUZZING_LIBS)
|
2016-12-14 01:15:26 +01:00
|
|
|
|
2016-12-19 21:17:42 +01:00
|
|
|
src_test_fuzz_fuzz_hsdescv2_SOURCES = \
|
|
|
|
src/test/fuzz/fuzzing_common.c \
|
|
|
|
src/test/fuzz/fuzz_hsdescv2.c
|
|
|
|
src_test_fuzz_fuzz_hsdescv2_CPPFLAGS = $(FUZZING_CPPFLAGS)
|
|
|
|
src_test_fuzz_fuzz_hsdescv2_CFLAGS = $(FUZZING_CFLAGS)
|
|
|
|
src_test_fuzz_fuzz_hsdescv2_LDFLAGS = $(FUZZING_LDFLAG)
|
|
|
|
src_test_fuzz_fuzz_hsdescv2_LDADD = $(FUZZING_LIBS)
|
|
|
|
|
2017-10-26 15:41:47 +02:00
|
|
|
src_test_fuzz_fuzz_hsdescv3_SOURCES = \
|
|
|
|
src/test/fuzz/fuzzing_common.c \
|
|
|
|
src/test/fuzz/fuzz_hsdescv3.c
|
|
|
|
src_test_fuzz_fuzz_hsdescv3_CPPFLAGS = $(FUZZING_CPPFLAGS)
|
|
|
|
src_test_fuzz_fuzz_hsdescv3_CFLAGS = $(FUZZING_CFLAGS)
|
|
|
|
src_test_fuzz_fuzz_hsdescv3_LDFLAGS = $(FUZZING_LDFLAG)
|
|
|
|
src_test_fuzz_fuzz_hsdescv3_LDADD = $(FUZZING_LIBS)
|
|
|
|
|
2017-03-16 22:14:10 +01:00
|
|
|
src_test_fuzz_fuzz_http_SOURCES = \
|
|
|
|
src/test/fuzz/fuzzing_common.c \
|
|
|
|
src/test/fuzz/fuzz_http.c
|
|
|
|
src_test_fuzz_fuzz_http_CPPFLAGS = $(FUZZING_CPPFLAGS)
|
|
|
|
src_test_fuzz_fuzz_http_CFLAGS = $(FUZZING_CFLAGS)
|
|
|
|
src_test_fuzz_fuzz_http_LDFLAGS = $(FUZZING_LDFLAG)
|
|
|
|
src_test_fuzz_fuzz_http_LDADD = $(FUZZING_LIBS)
|
|
|
|
|
2017-09-05 19:19:59 +02:00
|
|
|
src_test_fuzz_fuzz_http_connect_SOURCES = \
|
|
|
|
src/test/fuzz/fuzzing_common.c \
|
|
|
|
src/test/fuzz/fuzz_http_connect.c
|
|
|
|
src_test_fuzz_fuzz_http_connect_CPPFLAGS = $(FUZZING_CPPFLAGS)
|
|
|
|
src_test_fuzz_fuzz_http_connect_CFLAGS = $(FUZZING_CFLAGS)
|
|
|
|
src_test_fuzz_fuzz_http_connect_LDFLAGS = $(FUZZING_LDFLAG)
|
|
|
|
src_test_fuzz_fuzz_http_connect_LDADD = $(FUZZING_LIBS)
|
|
|
|
|
2016-12-19 21:17:42 +01:00
|
|
|
src_test_fuzz_fuzz_iptsv2_SOURCES = \
|
|
|
|
src/test/fuzz/fuzzing_common.c \
|
|
|
|
src/test/fuzz/fuzz_iptsv2.c
|
|
|
|
src_test_fuzz_fuzz_iptsv2_CPPFLAGS = $(FUZZING_CPPFLAGS)
|
|
|
|
src_test_fuzz_fuzz_iptsv2_CFLAGS = $(FUZZING_CFLAGS)
|
|
|
|
src_test_fuzz_fuzz_iptsv2_LDFLAGS = $(FUZZING_LDFLAG)
|
|
|
|
src_test_fuzz_fuzz_iptsv2_LDADD = $(FUZZING_LIBS)
|
|
|
|
|
2016-12-14 23:03:54 +01:00
|
|
|
src_test_fuzz_fuzz_microdesc_SOURCES = \
|
|
|
|
src/test/fuzz/fuzzing_common.c \
|
|
|
|
src/test/fuzz/fuzz_microdesc.c
|
|
|
|
src_test_fuzz_fuzz_microdesc_CPPFLAGS = $(FUZZING_CPPFLAGS)
|
|
|
|
src_test_fuzz_fuzz_microdesc_CFLAGS = $(FUZZING_CFLAGS)
|
|
|
|
src_test_fuzz_fuzz_microdesc_LDFLAGS = $(FUZZING_LDFLAG)
|
|
|
|
src_test_fuzz_fuzz_microdesc_LDADD = $(FUZZING_LIBS)
|
|
|
|
|
2016-12-31 21:09:11 +01:00
|
|
|
src_test_fuzz_fuzz_vrs_SOURCES = \
|
|
|
|
src/test/fuzz/fuzzing_common.c \
|
|
|
|
src/test/fuzz/fuzz_vrs.c
|
|
|
|
src_test_fuzz_fuzz_vrs_CPPFLAGS = $(FUZZING_CPPFLAGS)
|
|
|
|
src_test_fuzz_fuzz_vrs_CFLAGS = $(FUZZING_CFLAGS)
|
|
|
|
src_test_fuzz_fuzz_vrs_LDFLAGS = $(FUZZING_LDFLAG)
|
|
|
|
src_test_fuzz_fuzz_vrs_LDADD = $(FUZZING_LIBS)
|
|
|
|
|
2016-12-14 01:15:26 +01:00
|
|
|
FUZZERS = \
|
2016-12-19 21:17:42 +01:00
|
|
|
src/test/fuzz/fuzz-consensus \
|
2016-12-14 01:15:26 +01:00
|
|
|
src/test/fuzz/fuzz-descriptor \
|
2017-03-07 21:07:27 +01:00
|
|
|
src/test/fuzz/fuzz-diff \
|
|
|
|
src/test/fuzz/fuzz-diff-apply \
|
2016-12-14 16:05:41 +01:00
|
|
|
src/test/fuzz/fuzz-extrainfo \
|
2016-12-19 21:17:42 +01:00
|
|
|
src/test/fuzz/fuzz-hsdescv2 \
|
2017-10-26 15:41:47 +02:00
|
|
|
src/test/fuzz/fuzz-hsdescv3 \
|
2017-03-16 22:14:10 +01:00
|
|
|
src/test/fuzz/fuzz-http \
|
2017-09-05 19:19:59 +02:00
|
|
|
src/test/fuzz/fuzz-http-connect \
|
2016-12-19 21:17:42 +01:00
|
|
|
src/test/fuzz/fuzz-iptsv2 \
|
2016-12-31 21:09:11 +01:00
|
|
|
src/test/fuzz/fuzz-microdesc \
|
|
|
|
src/test/fuzz/fuzz-vrs
|
|
|
|
|
2017-03-16 22:14:10 +01:00
|
|
|
# ===== libfuzzer
|
2016-12-19 21:17:42 +01:00
|
|
|
|
|
|
|
if LIBFUZZER_ENABLED
|
|
|
|
src_test_fuzz_lf_fuzz_consensus_SOURCES = \
|
|
|
|
$(src_test_fuzz_fuzz_consensus_SOURCES)
|
|
|
|
src_test_fuzz_lf_fuzz_consensus_CPPFLAGS = $(LIBFUZZER_CPPFLAGS)
|
|
|
|
src_test_fuzz_lf_fuzz_consensus_CFLAGS = $(LIBFUZZER_CFLAGS)
|
|
|
|
src_test_fuzz_lf_fuzz_consensus_LDFLAGS = $(LIBFUZZER_LDFLAG)
|
|
|
|
src_test_fuzz_lf_fuzz_consensus_LDADD = $(LIBFUZZER_LIBS)
|
|
|
|
|
|
|
|
src_test_fuzz_lf_fuzz_descriptor_SOURCES = \
|
|
|
|
$(src_test_fuzz_fuzz_descriptor_SOURCES)
|
|
|
|
src_test_fuzz_lf_fuzz_descriptor_CPPFLAGS = $(LIBFUZZER_CPPFLAGS)
|
|
|
|
src_test_fuzz_lf_fuzz_descriptor_CFLAGS = $(LIBFUZZER_CFLAGS)
|
|
|
|
src_test_fuzz_lf_fuzz_descriptor_LDFLAGS = $(LIBFUZZER_LDFLAG)
|
|
|
|
src_test_fuzz_lf_fuzz_descriptor_LDADD = $(LIBFUZZER_LIBS)
|
|
|
|
|
2017-03-07 21:07:27 +01:00
|
|
|
src_test_fuzz_lf_fuzz_diff_SOURCES = \
|
|
|
|
$(src_test_fuzz_fuzz_diff_SOURCES)
|
|
|
|
src_test_fuzz_lf_fuzz_diff_CPPFLAGS = $(LIBFUZZER_CPPFLAGS)
|
|
|
|
src_test_fuzz_lf_fuzz_diff_CFLAGS = $(LIBFUZZER_CFLAGS)
|
|
|
|
src_test_fuzz_lf_fuzz_diff_LDFLAGS = $(LIBFUZZER_LDFLAG)
|
|
|
|
src_test_fuzz_lf_fuzz_diff_LDADD = $(LIBFUZZER_LIBS)
|
|
|
|
|
|
|
|
src_test_fuzz_lf_fuzz_diff_apply_SOURCES = \
|
|
|
|
$(src_test_fuzz_fuzz_diff_apply_SOURCES)
|
|
|
|
src_test_fuzz_lf_fuzz_diff_apply_CPPFLAGS = $(LIBFUZZER_CPPFLAGS)
|
|
|
|
src_test_fuzz_lf_fuzz_diff_apply_CFLAGS = $(LIBFUZZER_CFLAGS)
|
|
|
|
src_test_fuzz_lf_fuzz_diff_apply_LDFLAGS = $(LIBFUZZER_LDFLAG)
|
|
|
|
src_test_fuzz_lf_fuzz_diff_apply_LDADD = $(LIBFUZZER_LIBS)
|
|
|
|
|
2016-12-19 21:17:42 +01:00
|
|
|
src_test_fuzz_lf_fuzz_extrainfo_SOURCES = \
|
|
|
|
$(src_test_fuzz_fuzz_extrainfo_SOURCES)
|
|
|
|
src_test_fuzz_lf_fuzz_extrainfo_CPPFLAGS = $(LIBFUZZER_CPPFLAGS)
|
|
|
|
src_test_fuzz_lf_fuzz_extrainfo_CFLAGS = $(LIBFUZZER_CFLAGS)
|
|
|
|
src_test_fuzz_lf_fuzz_extrainfo_LDFLAGS = $(LIBFUZZER_LDFLAG)
|
|
|
|
src_test_fuzz_lf_fuzz_extrainfo_LDADD = $(LIBFUZZER_LIBS)
|
|
|
|
|
|
|
|
src_test_fuzz_lf_fuzz_hsdescv2_SOURCES = \
|
|
|
|
$(src_test_fuzz_fuzz_hsdescv2_SOURCES)
|
|
|
|
src_test_fuzz_lf_fuzz_hsdescv2_CPPFLAGS = $(LIBFUZZER_CPPFLAGS)
|
|
|
|
src_test_fuzz_lf_fuzz_hsdescv2_CFLAGS = $(LIBFUZZER_CFLAGS)
|
|
|
|
src_test_fuzz_lf_fuzz_hsdescv2_LDFLAGS = $(LIBFUZZER_LDFLAG)
|
|
|
|
src_test_fuzz_lf_fuzz_hsdescv2_LDADD = $(LIBFUZZER_LIBS)
|
|
|
|
|
2017-10-26 15:41:47 +02:00
|
|
|
src_test_fuzz_lf_fuzz_hsdescv3_SOURCES = \
|
|
|
|
$(src_test_fuzz_fuzz_hsdescv3_SOURCES)
|
|
|
|
src_test_fuzz_lf_fuzz_hsdescv3_CPPFLAGS = $(LIBFUZZER_CPPFLAGS)
|
|
|
|
src_test_fuzz_lf_fuzz_hsdescv3_CFLAGS = $(LIBFUZZER_CFLAGS)
|
|
|
|
src_test_fuzz_lf_fuzz_hsdescv3_LDFLAGS = $(LIBFUZZER_LDFLAG)
|
|
|
|
src_test_fuzz_lf_fuzz_hsdescv3_LDADD = $(LIBFUZZER_LIBS)
|
|
|
|
|
2017-03-16 22:14:10 +01:00
|
|
|
src_test_fuzz_lf_fuzz_http_SOURCES = \
|
|
|
|
$(src_test_fuzz_fuzz_http_SOURCES)
|
|
|
|
src_test_fuzz_lf_fuzz_http_CPPFLAGS = $(LIBFUZZER_CPPFLAGS)
|
|
|
|
src_test_fuzz_lf_fuzz_http_CFLAGS = $(LIBFUZZER_CFLAGS)
|
|
|
|
src_test_fuzz_lf_fuzz_http_LDFLAGS = $(LIBFUZZER_LDFLAG)
|
|
|
|
src_test_fuzz_lf_fuzz_http_LDADD = $(LIBFUZZER_LIBS)
|
|
|
|
|
2017-09-05 19:19:59 +02:00
|
|
|
src_test_fuzz_lf_fuzz_http_connect_SOURCES = \
|
|
|
|
$(src_test_fuzz_fuzz_http_connect_SOURCES)
|
|
|
|
src_test_fuzz_lf_fuzz_http_connect_CPPFLAGS = $(LIBFUZZER_CPPFLAGS)
|
|
|
|
src_test_fuzz_lf_fuzz_http_connect_CFLAGS = $(LIBFUZZER_CFLAGS)
|
|
|
|
src_test_fuzz_lf_fuzz_http_connect_LDFLAGS = $(LIBFUZZER_LDFLAG)
|
|
|
|
src_test_fuzz_lf_fuzz_http_connect_LDADD = $(LIBFUZZER_LIBS)
|
|
|
|
|
2016-12-19 21:17:42 +01:00
|
|
|
src_test_fuzz_lf_fuzz_iptsv2_SOURCES = \
|
|
|
|
$(src_test_fuzz_fuzz_iptsv2_SOURCES)
|
|
|
|
src_test_fuzz_lf_fuzz_iptsv2_CPPFLAGS = $(LIBFUZZER_CPPFLAGS)
|
|
|
|
src_test_fuzz_lf_fuzz_iptsv2_CFLAGS = $(LIBFUZZER_CFLAGS)
|
|
|
|
src_test_fuzz_lf_fuzz_iptsv2_LDFLAGS = $(LIBFUZZER_LDFLAG)
|
|
|
|
src_test_fuzz_lf_fuzz_iptsv2_LDADD = $(LIBFUZZER_LIBS)
|
|
|
|
|
|
|
|
src_test_fuzz_lf_fuzz_microdesc_SOURCES = \
|
|
|
|
$(src_test_fuzz_fuzz_microdesc_SOURCES)
|
|
|
|
src_test_fuzz_lf_fuzz_microdesc_CPPFLAGS = $(LIBFUZZER_CPPFLAGS)
|
|
|
|
src_test_fuzz_lf_fuzz_microdesc_CFLAGS = $(LIBFUZZER_CFLAGS)
|
|
|
|
src_test_fuzz_lf_fuzz_microdesc_LDFLAGS = $(LIBFUZZER_LDFLAG)
|
|
|
|
src_test_fuzz_lf_fuzz_microdesc_LDADD = $(LIBFUZZER_LIBS)
|
|
|
|
|
2016-12-31 21:09:11 +01:00
|
|
|
src_test_fuzz_lf_fuzz_vrs_SOURCES = \
|
|
|
|
$(src_test_fuzz_fuzz_vrs_SOURCES)
|
|
|
|
src_test_fuzz_lf_fuzz_vrs_CPPFLAGS = $(LIBFUZZER_CPPFLAGS)
|
|
|
|
src_test_fuzz_lf_fuzz_vrs_CFLAGS = $(LIBFUZZER_CFLAGS)
|
|
|
|
src_test_fuzz_lf_fuzz_vrs_LDFLAGS = $(LIBFUZZER_LDFLAG)
|
|
|
|
src_test_fuzz_lf_fuzz_vrs_LDADD = $(LIBFUZZER_LIBS)
|
|
|
|
|
2016-12-19 21:17:42 +01:00
|
|
|
LIBFUZZER_FUZZERS = \
|
|
|
|
src/test/fuzz/lf-fuzz-consensus \
|
2017-03-16 22:14:10 +01:00
|
|
|
src/test/fuzz/lf-fuzz-descriptor \
|
2017-03-07 21:07:27 +01:00
|
|
|
src/test/fuzz/lf-fuzz-diff \
|
|
|
|
src/test/fuzz/lf-fuzz-diff-apply \
|
2016-12-19 21:17:42 +01:00
|
|
|
src/test/fuzz/lf-fuzz-extrainfo \
|
|
|
|
src/test/fuzz/lf-fuzz-hsdescv2 \
|
2017-10-26 15:41:47 +02:00
|
|
|
src/test/fuzz/lf-fuzz-hsdescv3 \
|
2017-03-16 22:14:10 +01:00
|
|
|
src/test/fuzz/lf-fuzz-http \
|
2017-09-05 19:19:59 +02:00
|
|
|
src/test/fuzz/lf-fuzz-http-connect \
|
2016-12-19 21:17:42 +01:00
|
|
|
src/test/fuzz/lf-fuzz-iptsv2 \
|
2016-12-31 21:09:11 +01:00
|
|
|
src/test/fuzz/lf-fuzz-microdesc \
|
|
|
|
src/test/fuzz/lf-fuzz-vrs
|
2016-12-19 21:17:42 +01:00
|
|
|
|
|
|
|
else
|
|
|
|
LIBFUZZER_FUZZERS =
|
|
|
|
endif
|
2016-12-14 21:57:22 +01:00
|
|
|
|
2017-03-16 22:14:10 +01:00
|
|
|
# ===== oss-fuzz
|
2017-01-09 16:44:55 +01:00
|
|
|
|
2017-03-16 22:14:10 +01:00
|
|
|
if OSS_FUZZ_ENABLED
|
2017-01-09 19:15:40 +01:00
|
|
|
src_test_fuzz_liboss_fuzz_consensus_a_SOURCES = \
|
2017-01-09 16:44:55 +01:00
|
|
|
$(src_test_fuzz_fuzz_consensus_SOURCES)
|
2017-01-09 19:15:40 +01:00
|
|
|
src_test_fuzz_liboss_fuzz_consensus_a_CPPFLAGS = $(LIBOSS_FUZZ_CPPFLAGS)
|
|
|
|
src_test_fuzz_liboss_fuzz_consensus_a_CFLAGS = $(LIBOSS_FUZZ_CFLAGS)
|
2017-01-09 16:44:55 +01:00
|
|
|
|
2017-01-09 19:15:40 +01:00
|
|
|
src_test_fuzz_liboss_fuzz_descriptor_a_SOURCES = \
|
2017-01-09 16:44:55 +01:00
|
|
|
$(src_test_fuzz_fuzz_descriptor_SOURCES)
|
2017-01-09 19:15:40 +01:00
|
|
|
src_test_fuzz_liboss_fuzz_descriptor_a_CPPFLAGS = $(LIBOSS_FUZZ_CPPFLAGS)
|
|
|
|
src_test_fuzz_liboss_fuzz_descriptor_a_CFLAGS = $(LIBOSS_FUZZ_CFLAGS)
|
2017-01-09 16:44:55 +01:00
|
|
|
|
2017-03-07 21:07:27 +01:00
|
|
|
src_test_fuzz_liboss_fuzz_diff_a_SOURCES = \
|
|
|
|
$(src_test_fuzz_fuzz_diff_SOURCES)
|
|
|
|
src_test_fuzz_liboss_fuzz_diff_a_CPPFLAGS = $(LIBOSS_FUZZ_CPPFLAGS)
|
|
|
|
src_test_fuzz_liboss_fuzz_diff_a_CFLAGS = $(LIBOSS_FUZZ_CFLAGS)
|
|
|
|
|
|
|
|
src_test_fuzz_liboss_fuzz_diff_apply_a_SOURCES = \
|
|
|
|
$(src_test_fuzz_fuzz_diff_apply_SOURCES)
|
|
|
|
src_test_fuzz_liboss_fuzz_diff_apply_a_CPPFLAGS = $(LIBOSS_FUZZ_CPPFLAGS)
|
|
|
|
src_test_fuzz_liboss_fuzz_diff_apply_a_CFLAGS = $(LIBOSS_FUZZ_CFLAGS)
|
|
|
|
|
2017-01-09 19:15:40 +01:00
|
|
|
src_test_fuzz_liboss_fuzz_extrainfo_a_SOURCES = \
|
2017-01-09 16:44:55 +01:00
|
|
|
$(src_test_fuzz_fuzz_extrainfo_SOURCES)
|
2017-01-09 19:15:40 +01:00
|
|
|
src_test_fuzz_liboss_fuzz_extrainfo_a_CPPFLAGS = $(LIBOSS_FUZZ_CPPFLAGS)
|
|
|
|
src_test_fuzz_liboss_fuzz_extrainfo_a_CFLAGS = $(LIBOSS_FUZZ_CFLAGS)
|
2017-01-09 16:44:55 +01:00
|
|
|
|
2017-01-09 19:15:40 +01:00
|
|
|
src_test_fuzz_liboss_fuzz_hsdescv2_a_SOURCES = \
|
2017-01-09 16:44:55 +01:00
|
|
|
$(src_test_fuzz_fuzz_hsdescv2_SOURCES)
|
2017-01-09 19:15:40 +01:00
|
|
|
src_test_fuzz_liboss_fuzz_hsdescv2_a_CPPFLAGS = $(LIBOSS_FUZZ_CPPFLAGS)
|
|
|
|
src_test_fuzz_liboss_fuzz_hsdescv2_a_CFLAGS = $(LIBOSS_FUZZ_CFLAGS)
|
2017-01-09 16:44:55 +01:00
|
|
|
|
2017-10-26 15:41:47 +02:00
|
|
|
src_test_fuzz_liboss_fuzz_hsdescv3_a_SOURCES = \
|
|
|
|
$(src_test_fuzz_fuzz_hsdescv3_SOURCES)
|
|
|
|
src_test_fuzz_liboss_fuzz_hsdescv3_a_CPPFLAGS = $(LIBOSS_FUZZ_CPPFLAGS)
|
|
|
|
src_test_fuzz_liboss_fuzz_hsdescv3_a_CFLAGS = $(LIBOSS_FUZZ_CFLAGS)
|
|
|
|
|
2017-03-16 22:14:10 +01:00
|
|
|
src_test_fuzz_liboss_fuzz_http_a_SOURCES = \
|
|
|
|
$(src_test_fuzz_fuzz_http_SOURCES)
|
|
|
|
src_test_fuzz_liboss_fuzz_http_a_CPPFLAGS = $(LIBOSS_FUZZ_CPPFLAGS)
|
|
|
|
src_test_fuzz_liboss_fuzz_http_a_CFLAGS = $(LIBOSS_FUZZ_CFLAGS)
|
|
|
|
|
2017-09-05 19:19:59 +02:00
|
|
|
src_test_fuzz_liboss_fuzz_http_connect_a_SOURCES = \
|
|
|
|
$(src_test_fuzz_fuzz_http_connect_SOURCES)
|
|
|
|
src_test_fuzz_liboss_fuzz_http_connect_a_CPPFLAGS = $(LIBOSS_FUZZ_CPPFLAGS)
|
|
|
|
src_test_fuzz_liboss_fuzz_http_connect_a_CFLAGS = $(LIBOSS_FUZZ_CFLAGS)
|
|
|
|
|
2017-01-09 19:15:40 +01:00
|
|
|
src_test_fuzz_liboss_fuzz_iptsv2_a_SOURCES = \
|
2017-01-09 16:44:55 +01:00
|
|
|
$(src_test_fuzz_fuzz_iptsv2_SOURCES)
|
2017-01-09 19:15:40 +01:00
|
|
|
src_test_fuzz_liboss_fuzz_iptsv2_a_CPPFLAGS = $(LIBOSS_FUZZ_CPPFLAGS)
|
|
|
|
src_test_fuzz_liboss_fuzz_iptsv2_a_CFLAGS = $(LIBOSS_FUZZ_CFLAGS)
|
2017-01-09 16:44:55 +01:00
|
|
|
|
2017-01-09 19:15:40 +01:00
|
|
|
src_test_fuzz_liboss_fuzz_microdesc_a_SOURCES = \
|
2017-01-09 16:44:55 +01:00
|
|
|
$(src_test_fuzz_fuzz_microdesc_SOURCES)
|
2017-01-09 19:15:40 +01:00
|
|
|
src_test_fuzz_liboss_fuzz_microdesc_a_CPPFLAGS = $(LIBOSS_FUZZ_CPPFLAGS)
|
|
|
|
src_test_fuzz_liboss_fuzz_microdesc_a_CFLAGS = $(LIBOSS_FUZZ_CFLAGS)
|
2017-01-09 16:44:55 +01:00
|
|
|
|
2017-01-09 19:15:40 +01:00
|
|
|
src_test_fuzz_liboss_fuzz_vrs_a_SOURCES = \
|
2017-01-09 16:44:55 +01:00
|
|
|
$(src_test_fuzz_fuzz_vrs_SOURCES)
|
2017-01-09 19:15:40 +01:00
|
|
|
src_test_fuzz_liboss_fuzz_vrs_a_CPPFLAGS = $(LIBOSS_FUZZ_CPPFLAGS)
|
|
|
|
src_test_fuzz_liboss_fuzz_vrs_a_CFLAGS = $(LIBOSS_FUZZ_CFLAGS)
|
|
|
|
|
2017-01-09 20:07:16 +01:00
|
|
|
OSS_FUZZ_FUZZERS = \
|
2017-01-09 19:15:40 +01:00
|
|
|
src/test/fuzz/liboss-fuzz-consensus.a \
|
|
|
|
src/test/fuzz/liboss-fuzz-descriptor.a \
|
2017-03-07 21:07:27 +01:00
|
|
|
src/test/fuzz/liboss-fuzz-diff.a \
|
|
|
|
src/test/fuzz/liboss-fuzz-diff-apply.a \
|
2017-01-09 19:15:40 +01:00
|
|
|
src/test/fuzz/liboss-fuzz-extrainfo.a \
|
|
|
|
src/test/fuzz/liboss-fuzz-hsdescv2.a \
|
2017-10-26 15:41:47 +02:00
|
|
|
src/test/fuzz/liboss-fuzz-hsdescv3.a \
|
2017-03-16 22:14:10 +01:00
|
|
|
src/test/fuzz/liboss-fuzz-http.a \
|
2017-09-05 19:19:59 +02:00
|
|
|
src/test/fuzz/liboss-fuzz-http-connect.a \
|
2017-01-09 19:15:40 +01:00
|
|
|
src/test/fuzz/liboss-fuzz-iptsv2.a \
|
|
|
|
src/test/fuzz/liboss-fuzz-microdesc.a \
|
|
|
|
src/test/fuzz/liboss-fuzz-vrs.a
|
2017-03-16 22:14:10 +01:00
|
|
|
|
2017-01-09 16:44:55 +01:00
|
|
|
else
|
2017-01-09 20:07:16 +01:00
|
|
|
OSS_FUZZ_FUZZERS =
|
2017-01-09 16:44:55 +01:00
|
|
|
endif
|
|
|
|
|
2017-01-09 18:25:28 +01:00
|
|
|
noinst_PROGRAMS += $(FUZZERS) $(LIBFUZZER_FUZZERS)
|
|
|
|
noinst_LIBRARIES += $(OSS_FUZZ_FUZZERS)
|
2017-01-09 20:07:16 +01:00
|
|
|
oss-fuzz-fuzzers: oss-fuzz-prereqs $(OSS_FUZZ_FUZZERS)
|
2016-12-19 21:17:42 +01:00
|
|
|
fuzzers: $(FUZZERS) $(LIBFUZZER_FUZZERS)
|
2016-12-14 21:57:22 +01:00
|
|
|
|
2017-02-15 00:04:10 +01:00
|
|
|
test-fuzz-corpora: $(FUZZERS)
|
2017-01-27 17:16:23 +01:00
|
|
|
$(top_srcdir)/src/test/fuzz_static_testcases.sh
|