From e0dd4d0ac02c7040e8f6d346d4a8b7d087adfc04 Mon Sep 17 00:00:00 2001 From: Douglas Bagnall Date: Fri, 29 Jan 2021 14:11:46 +1300 Subject: fuzz: add a LLVMFuzzerInitialize() to all fuzzers To compile the AFL binaries, we need every fuzzer to have a consistent set of functions. Some fuzzers require the initialize function, so all the rest must have an empty one. AFL binaires are handy for testing the fuzz results in a less magical environment than libfuzzer/honggfuzz give you. Signed-off-by: Douglas Bagnall Reviewed-by: Jeremy Allison --- lib/fuzzing/fuzz_nmblib_parse_packet.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib/fuzzing/fuzz_nmblib_parse_packet.c') diff --git a/lib/fuzzing/fuzz_nmblib_parse_packet.c b/lib/fuzzing/fuzz_nmblib_parse_packet.c index 7b35abe9f97..85dd823e51c 100644 --- a/lib/fuzzing/fuzz_nmblib_parse_packet.c +++ b/lib/fuzzing/fuzz_nmblib_parse_packet.c @@ -54,3 +54,9 @@ int LLVMFuzzerTestOneInput(uint8_t *input, size_t len) } return 0; } + + +int LLVMFuzzerInitialize(int *argc, char ***argv) +{ + return 0; +} -- cgit v1.2.1