diff options
author | Ivan Nardi <12729895+IvanNardi@users.noreply.github.com> | 2023-01-25 11:44:59 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-25 11:44:59 +0100 |
commit | 9fc724de5a6539b84dfbec5d0d0fff68dc5676de (patch) | |
tree | d9f72cc9fe448a2ce36bed4aed65a3df93821d43 /fuzz/fuzz_common_code.h | |
parent | 29c5cc39fb7f714897c3d6a3454e696e263fb9bc (diff) |
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.
Diffstat (limited to 'fuzz/fuzz_common_code.h')
-rw-r--r-- | fuzz/fuzz_common_code.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fuzz/fuzz_common_code.h b/fuzz/fuzz_common_code.h index 84670a0bb..02df3e0cc 100644 --- a/fuzz/fuzz_common_code.h +++ b/fuzz/fuzz_common_code.h @@ -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); |