From 77247ba07b0052e175dd60ae1db22e65007691eb Mon Sep 17 00:00:00 2001 From: Toni Uhlig Date: Mon, 11 Oct 2021 02:24:09 +0200 Subject: Fix broken fuzz_process_packet fuzzer by adding a call to ndpi_finalize_initialization(). * fixed several memory errors (heap-overflow, unitialized memory, etc) * ability to build fuzz_process_packet with a main() allowing to replay crash data generated with fuzz_process_packet by LLVMs libfuzzer * temporarily disable fuzzing if `tests/do.sh` executed with env FUZZY_TESTING_ENABLED=1 Signed-off-by: Toni Uhlig --- src/include/ndpi_main.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/include') diff --git a/src/include/ndpi_main.h b/src/include/ndpi_main.h index 3e8825819..35efaa0b9 100644 --- a/src/include/ndpi_main.h +++ b/src/include/ndpi_main.h @@ -144,7 +144,7 @@ extern "C" { #define ndpi_match_strprefix(payload, payload_len, str) \ ndpi_match_prefix((payload), (payload_len), (str), (sizeof(str)-1)) - int ndpi_handle_ipv6_extension_headers(struct ndpi_detection_module_struct *ndpi_str, + int ndpi_handle_ipv6_extension_headers(u_int16_t l3len, const u_int8_t ** l4ptr, u_int16_t * l4len, u_int8_t * nxt_hdr); void ndpi_set_risk(struct ndpi_detection_module_struct *ndpi_str, -- cgit v1.2.3