From f3104240372794ab8572abd73ca0b90f79ce88f6 Mon Sep 17 00:00:00 2001 From: Nardi Ivan Date: Mon, 16 Sep 2024 10:10:49 +0200 Subject: fuzz: fix compilation --- fuzz/fuzz_ndpi_reader.c | 1 + fuzz/fuzz_readerutils_parseprotolist.cpp | 1 + fuzz/fuzz_readerutils_workflow.cpp | 1 + 3 files changed, 3 insertions(+) (limited to 'fuzz') 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); -- cgit v1.2.3