aboutsummaryrefslogtreecommitdiff
path: root/fuzz/fuzz_process_packet.c
diff options
context:
space:
mode:
authorIvan Nardi <12729895+IvanNardi@users.noreply.github.com>2023-01-25 11:44:59 +0100
committerGitHub <noreply@github.com>2023-01-25 11:44:59 +0100
commit9fc724de5a6539b84dfbec5d0d0fff68dc5676de (patch)
treed9f72cc9fe448a2ce36bed4aed65a3df93821d43 /fuzz/fuzz_process_packet.c
parent29c5cc39fb7f714897c3d6a3454e696e263fb9bc (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_process_packet.c')
-rw-r--r--fuzz/fuzz_process_packet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fuzz/fuzz_process_packet.c b/fuzz/fuzz_process_packet.c
index 7376f4fd8..dcd15c99e 100644
--- a/fuzz/fuzz_process_packet.c
+++ b/fuzz/fuzz_process_packet.c
@@ -12,7 +12,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) {
uint8_t protocol_was_guessed;
if (ndpi_info_mod == NULL) {
- fuzz_init_detection_module(&ndpi_info_mod, 0);
+ fuzz_init_detection_module(&ndpi_info_mod);
ndpi_init_serializer(&json_serializer, ndpi_serialization_format_json);
ndpi_init_serializer(&csv_serializer, ndpi_serialization_format_csv);