Add some fuzzers to test other data structures. (#1870)

Start using a dictionary for fuzzing (see:
https://llvm.org/docs/LibFuzzer.html#dictionaries).
Remove some dead code.
Fuzzing with debug enabled is not usually a great idea (from performance
POV). Keep the code since it might be useful while debugging.
This commit is contained in:
Ivan Nardi 2023-01-25 11:44:59 +01:00 committed by GitHub
parent 29c5cc39fb
commit 9fc724de5a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
184 changed files with 436 additions and 60 deletions

View file

@ -8,8 +8,7 @@ extern "C"
{
#endif
void fuzz_init_detection_module(struct ndpi_detection_module_struct **ndpi_info_mod,
int enable_log);
void fuzz_init_detection_module(struct ndpi_detection_module_struct **ndpi_info_mod);
/* To allow memory allocation failures */
void fuzz_set_alloc_callbacks(void);