Skip to content
Snippets Groups Projects
Commit e5416840 authored by Jonathan Foote's avatar Jonathan Foote
Browse files

remove _libfuzzer from fuzz binaries

parent bda7cc43
Branches
Tags v2.4.1
No related merge requests found
Pipeline #30884 failed with stages
in 0 seconds
......@@ -8,31 +8,31 @@ AM_CPPFLAGS = \
-DSRCDIR=\"$(abs_srcdir)\"
FUZZERS = \
packet_libfuzzer \
zscanner_libfuzzer
packet \
zscanner
check_PROGRAMS = $(FUZZERS)
packet_libfuzzer_SOURCES = packet_libfuzzer.c
packet_libfuzzer_LDADD = $(top_builddir)/src/libknot.la
packet_SOURCES = packet_libfuzzer.c
packet_LDADD = $(top_builddir)/src/libknot.la
zscanner_libfuzzer_SOURCES = zscanner_libfuzzer.c
zscanner_libfuzzer_LDADD = $(top_builddir)/src/zscanner/libzscanner.la
zscanner_SOURCES = zscanner_libfuzzer.c
zscanner_LDADD = $(top_builddir)/src/zscanner/libzscanner.la
if OSS_FUZZ
# CFLAGS, LDFLAGS, etc. are defined by the oss-fuzz environment; just link
# in the fuzzing engine
packet_libfuzzer_LDADD += ${LIB_FUZZING_ENGINE} -lc++
zscanner_libfuzzer_LDADD += ${LIB_FUZZING_ENGINE} -lc++
packet_LDADD += ${LIB_FUZZING_ENGINE} -lc++
zscanner_LDADD += ${LIB_FUZZING_ENGINE} -lc++
else
if SANITIZE_FUZZER
packet_libfuzzer_LDFLAGS = -fsanitize=fuzzer
zscanner_libfuzzer_LDFLAGS = -fsanitize=fuzzer
packet_LDFLAGS = -fsanitize=fuzzer
zscanner_LDFLAGS = -fsanitize=fuzzer
# Ensure that fuzzers execute successfully with a benign input
......@@ -41,8 +41,8 @@ EXTRA_DIST = check/check_fuzzers.test
else
packet_libfuzzer_SOURCES += main.c
zscanner_libfuzzer_SOURCES += main.c
packet_SOURCES += main.c
zscanner_SOURCES += main.c
AM_CPPFLAGS += -DTEST_RUN
TESTS = $(FUZZERS)
......
......@@ -5,5 +5,5 @@
set -e
./packet_libfuzzer check/sample-seed.pkt
./zscanner_libfuzzer check/sample-seed.pkt
./packet check/sample-seed.pkt
./zscanner check/sample-seed.pkt
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment