diff options
author | Douglas Bagnall <douglas.bagnall@catalyst.net.nz> | 2021-01-29 14:11:46 +1300 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2021-03-16 17:09:32 +0000 |
commit | e0dd4d0ac02c7040e8f6d346d4a8b7d087adfc04 (patch) | |
tree | a78b49ba810b46a9d36b8ad2eb862ae0db971748 /lib/fuzzing/fuzz_ndr_X.c | |
parent | 17602fefdeddaf7c26d451f7e3350c43ccb9a0e9 (diff) | |
download | samba-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_ndr_X.c')
-rw-r--r-- | lib/fuzzing/fuzz_ndr_X.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/fuzzing/fuzz_ndr_X.c b/lib/fuzzing/fuzz_ndr_X.c index fc940f3011b..bedefba8553 100644 --- a/lib/fuzzing/fuzz_ndr_X.c +++ b/lib/fuzzing/fuzz_ndr_X.c @@ -329,3 +329,9 @@ int LLVMFuzzerTestOneInput(uint8_t *data, size_t size) { return 0; } + + +int LLVMFuzzerInitialize(int *argc, char ***argv) +{ + return 0; +} |