fuzz: add a LLVMFuzzerInitialize() to all fuzzers
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Fri, 29 Jan 2021 01:11:46 +0000 (14:11 +1300)
committerJeremy Allison <jra@samba.org>
Tue, 16 Mar 2021 17:09:32 +0000 (17:09 +0000)
commite0dd4d0ac02c7040e8f6d346d4a8b7d087adfc04
treea78b49ba810b46a9d36b8ad2eb862ae0db971748
parent17602fefdeddaf7c26d451f7e3350c43ccb9a0e9
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>
lib/fuzzing/fuzz_cli_credentials_parse_string.c
lib/fuzzing/fuzz_dcerpc_parse_binding.c
lib/fuzzing/fuzz_ldb_dn_explode.c
lib/fuzzing/fuzz_ldb_ldif_read.c
lib/fuzzing/fuzz_ldb_parse_binary_decode.c
lib/fuzzing/fuzz_ldb_parse_control.c
lib/fuzzing/fuzz_ndr_X.c
lib/fuzzing/fuzz_nmblib_parse_packet.c