From 10738a0ca334104377e19a1e683bd13f2451a9e2 Mon Sep 17 00:00:00 2001 From: Philippe Antoine Date: Mon, 13 Jan 2020 16:49:32 +0100 Subject: New fuzz target : fuzz_ndpi_reader --- fuzz/Makefile.am | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'fuzz/Makefile.am') diff --git a/fuzz/Makefile.am b/fuzz/Makefile.am index 10b4e593c..d85dbac15 100644 --- a/fuzz/Makefile.am +++ b/fuzz/Makefile.am @@ -1,13 +1,26 @@ -bin_PROGRAMS = fuzz_process_packet +bin_PROGRAMS = fuzz_process_packet fuzz_ndpi_reader fuzz_process_packet_SOURCES = fuzz_process_packet.c fuzz_process_packet_LDFLAGS = ../src/lib/libndpi.a if HAS_FUZZLDFLAGS fuzz_process_packet_LDFLAGS += $(LIB_FUZZING_ENGINE) else - fuzz_process_packet_SOURCES += # onefile.c + fuzz_process_packet_SOURCES += onefile.c endif # force usage of CXX for linker fuzz_process_packet_LINK=$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CXX) $(AM_CXXFLAGS) $(CXXFLAGS) \ $(fuzz_process_packet_LDFLAGS) $(LDFLAGS) -o $@ + +fuzz_ndpi_reader_SOURCES = fuzz_ndpi_reader.c +fuzz_ndpi_reader_CFLAGS = -I../example/ +fuzz_ndpi_reader_LDFLAGS = ../example/libndpiReader.a ../src/lib/libndpi.a $(PCAP_LIB) +if HAS_FUZZLDFLAGS + fuzz_ndpi_reader_LDFLAGS += $(LIB_FUZZING_ENGINE) +else + fuzz_ndpi_reader_SOURCES += onefile.c +endif +# force usage of CXX for linker +fuzz_ndpi_reader_LINK=$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(CXX) $(AM_CXXFLAGS) $(CXXFLAGS) \ + $(fuzz_ndpi_reader_LDFLAGS) $(LDFLAGS) -o $@ -- cgit v1.2.3