From c3ba65311e2cf4aba8b51cdb6800a5654ef1d060 Mon Sep 17 00:00:00 2001 From: Ivan Nardi <12729895+IvanNardi@users.noreply.github.com> Date: Fri, 12 Jul 2024 14:22:25 +0200 Subject: fuzzing: improve coverage (#2495) Fix detection of WebDAV and Gnutella (over HTTP) Fix detection of z3950 Add two fuzzers to test `ndpi_memmem()` and `ndpi_strnstr()` Remove some dead code: * RTP: the same exact check is performed at the very beginning of the function * MQTT: use a better helper to exclude the protocol * Colletd: `ndpi_hostname_sni_set()` never fails Update pl7m code (fix a Use-of-uninitialized-value error) --- src/include/ndpi_private.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/include') diff --git a/src/include/ndpi_private.h b/src/include/ndpi_private.h index 12db0d6da..574a68419 100644 --- a/src/include/ndpi_private.h +++ b/src/include/ndpi_private.h @@ -588,8 +588,6 @@ u_int ndpi_search_tcp_or_udp_raw(struct ndpi_detection_module_struct *ndpi_struc struct ndpi_flow_struct *flow, u_int32_t saddr, u_int32_t daddr); -u_int32_t ip_port_hash_funct(u_int32_t ip, u_int16_t port); - char* ndpi_intoav4(unsigned int addr, char* buf, u_int16_t bufLen); u_int16_t icmp4_checksum(u_int8_t const * const buf, size_t len); -- cgit v1.2.3