Skip to content

eBPF-based security platform

fuzz: build the beefile target against the option parser

Daniel Borkmann26d6116ec91e
diff --git a/Makefile.shirudo b/Makefile.shirudo
index 9aea9d0a..4a8f7fae 100644
--- a/Makefile.shirudo
+++ b/Makefile.shirudo
@@ -1241,7 +1241,8 @@ testing/fuzz/fuzz-otel: testing/fuzz/fuzz-otel.c $(FUZZ_BASE) \
testing/fuzz/fuzz-beefile: testing/fuzz/fuzz-beefile.c $(FUZZ_BASE) \
tools/shirudo-build/bpm-build.c $(FUZZ_PACKAGE) \
util/upatch.c util/timefmt.c util/paths.c \
- util/version_id.c
+ util/version_id.c util/options.c util/help.c \
+ util/similar.c
testing/fuzz/fuzz-oci-http: testing/fuzz/fuzz-oci-http.c $(FUZZ_BASE) \
$(FUZZ_OCI)
testing/fuzz/fuzz-oci-ref: testing/fuzz/fuzz-oci-ref.c $(FUZZ_BASE) \
diff --git a/testing/fuzz/fuzz-beefile.c b/testing/fuzz/fuzz-beefile.c
index 4634ab7b..acaaadec 100644
--- a/testing/fuzz/fuzz-beefile.c
+++ b/testing/fuzz/fuzz-beefile.c
@@ -18,12 +18,12 @@
#include "tools/shirudo-build/vmlinux.h"
/* What bpm build does with a parsed Beefile is out of reach from here. */
-int build_bpm_push(int argc, char **argv)
+int build_bpm_push(int argc, const char **argv)
{
return -ENOSYS;
}
-int build_bpm_tree(int argc, char **argv)
+int build_bpm_tree(int argc, const char **argv)
{
return -ENOSYS;
}