From 48a7f6d487862a392bad65e9e2797e6c4874f8cb Mon Sep 17 00:00:00 2001 From: Ivan Nardi <12729895+IvanNardi@users.noreply.github.com> Date: Sat, 10 Dec 2022 19:49:11 +0100 Subject: fuzz: some enhancements (#1827) Load some custom configuration (like in the unit tests) and factorize some (fuzzing) common code. There is no way to pass file paths to the fuzzers as parameters. The safe solution seems to be to load them from the process working dir. Anyway, missing file is not a blocking error. Remove some dead code (found looking at the coverage report) --- src/lib/protocols/teamviewer.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/lib/protocols/teamviewer.c') diff --git a/src/lib/protocols/teamviewer.c b/src/lib/protocols/teamviewer.c index b40f6d1fc..37aa01052 100644 --- a/src/lib/protocols/teamviewer.c +++ b/src/lib/protocols/teamviewer.c @@ -63,8 +63,6 @@ void ndpi_search_teamview(struct ndpi_detection_module_struct *ndpi_struct, stru } } - if(packet->payload_packet_len == 0) return; - if (packet->udp != NULL) { if (packet->payload_packet_len > 13) { if (packet->payload[0] == 0x00 && packet->payload[11] == 0x17 && packet->payload[12] == 0x24) { /* byte 0 is a counter/seq number, and at the start is 0 */ -- cgit v1.2.3