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/rtp.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/lib/protocols/rtp.c') diff --git a/src/lib/protocols/rtp.c b/src/lib/protocols/rtp.c index 5c0e68f40..ad090dc1e 100644 --- a/src/lib/protocols/rtp.c +++ b/src/lib/protocols/rtp.c @@ -114,6 +114,7 @@ static u_int8_t isZoom(u_int16_t sport, u_int16_t dport, u_int16_t *payload_offset) { u_int16_t header_offset = sizeof(struct zoom_sfu_encapsulation) + sizeof(struct zoom_media_encapsulation); + *payload_offset = 0; if(payloadLen < header_offset) return(0); -- cgit v1.2.3