Skip to content
Snippets Groups Projects
Commit 6e1f51ce authored by Daniel Salzman's avatar Daniel Salzman
Browse files

tests-fuzz: add alf-loop.h to knotd_stdio_SOURCES, fix include path

parent f51e96e1
Branches
Tags
No related merge requests found
Pipeline #34188 passed with stages
in 12 minutes and 33 seconds
......@@ -20,6 +20,7 @@ check_PROGRAMS = \
nodist_knotd_stdio_SOURCES = knotd_wrap/main.c
knotd_stdio_SOURCES = \
knotd_wrap/afl-loop.h \
knotd_wrap/server.c \
knotd_wrap/tcp-handler.c \
knotd_wrap/udp-handler.c
......@@ -31,7 +32,7 @@ knotd_stdio_LDADD = $(top_builddir)/src/libknotd.la $(top_builddir)/src/libcontr
BUILT_SOURCES = knotd_wrap/main.c
CLEANFILES = knotd_wrap/main.c
knotd_wrap/main.c: $(top_builddir)/src/utils/knotd/main.c
@echo '#include "afl-loop.h"' > $@
@echo '#include "knotd_wrap/afl-loop.h"' > $@
@$(SED) -e 's/for (;;)/while (__AFL_LOOP(10000))/' $(top_srcdir)/src/utils/knotd/main.c >> $@
# Simple function wrappers (AFL, libFuzzer, tests)
......
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