summaryrefslogtreecommitdiff
path: root/lib/fuzzing/fuzz_nmblib_parse_packet.c
diff options
context:
space:
mode:
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>2021-01-29 14:11:46 +1300
committerJeremy Allison <jra@samba.org>2021-03-16 17:09:32 +0000
commite0dd4d0ac02c7040e8f6d346d4a8b7d087adfc04 (patch)
treea78b49ba810b46a9d36b8ad2eb862ae0db971748 /lib/fuzzing/fuzz_nmblib_parse_packet.c
parent17602fefdeddaf7c26d451f7e3350c43ccb9a0e9 (diff)
downloadsamba-e0dd4d0ac02c7040e8f6d346d4a8b7d087adfc04.tar.gz
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 <douglas.bagnall@catalyst.net.nz> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'lib/fuzzing/fuzz_nmblib_parse_packet.c')
-rw-r--r--lib/fuzzing/fuzz_nmblib_parse_packet.c6
1 files changed, 6 insertions, 0 deletions
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;
+}