diff options
author | Nardi Ivan <nardi.ivan@gmail.com> | 2024-09-16 10:10:49 +0200 |
---|---|---|
committer | Nardi Ivan <nardi.ivan@gmail.com> | 2024-09-16 10:10:49 +0200 |
commit | f3104240372794ab8572abd73ca0b90f79ce88f6 (patch) | |
tree | d906935f79f1963976f911dc2cbebce144468811 | |
parent | 6de91c78955a0d85d97518c273366bd9d6ede5de (diff) |
fuzz: fix compilation
-rw-r--r-- | fuzz/fuzz_ndpi_reader.c | 1 | ||||
-rw-r--r-- | fuzz/fuzz_readerutils_parseprotolist.cpp | 1 | ||||
-rw-r--r-- | fuzz/fuzz_readerutils_workflow.cpp | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/fuzz/fuzz_ndpi_reader.c b/fuzz/fuzz_ndpi_reader.c index f801b3f1c..5f27ed3bf 100644 --- a/fuzz/fuzz_ndpi_reader.c +++ b/fuzz/fuzz_ndpi_reader.c @@ -21,6 +21,7 @@ u_int8_t enable_flow_stats = 1; u_int8_t human_readeable_string_len = 5; u_int8_t max_num_udp_dissected_pkts = 0, max_num_tcp_dissected_pkts = 0; /* Disable limits at application layer */; int malloc_size_stats = 0; +FILE *fingerprint_fp = NULL; extern void ndpi_report_payload_stats(FILE *out); diff --git a/fuzz/fuzz_readerutils_parseprotolist.cpp b/fuzz/fuzz_readerutils_parseprotolist.cpp index 2a52cef75..7af51b848 100644 --- a/fuzz/fuzz_readerutils_parseprotolist.cpp +++ b/fuzz/fuzz_readerutils_parseprotolist.cpp @@ -11,6 +11,7 @@ u_int8_t enable_flow_stats = 0; u_int8_t human_readeable_string_len = 5; u_int8_t max_num_udp_dissected_pkts = 16 /* 8 is enough for most protocols, Signal requires more */, max_num_tcp_dissected_pkts = 80 /* due to telnet */; int malloc_size_stats = 0; +FILE *fingerprint_fp = NULL; extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { diff --git a/fuzz/fuzz_readerutils_workflow.cpp b/fuzz/fuzz_readerutils_workflow.cpp index 3517003b6..34636e5e9 100644 --- a/fuzz/fuzz_readerutils_workflow.cpp +++ b/fuzz/fuzz_readerutils_workflow.cpp @@ -13,6 +13,7 @@ u_int8_t enable_flow_stats = 0; u_int8_t human_readeable_string_len = 5; u_int8_t max_num_udp_dissected_pkts = 16 /* 8 is enough for most protocols, Signal requires more */, max_num_tcp_dissected_pkts = 80 /* due to telnet */; int malloc_size_stats = 0; +FILE *fingerprint_fp = NULL; extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { FuzzedDataProvider fuzzed_data(data, size); |