From ef891834699db2b0ed16e32fc2d352e8a8419945 Mon Sep 17 00:00:00 2001 From: Ivan Nardi <12729895+IvanNardi@users.noreply.github.com> Date: Sat, 20 Apr 2024 18:15:23 +0200 Subject: fuzz: improvements (#2400) Create the zip file with all the traces only once. Add a new fuzzer to test "shoco" compression algorithm --- src/lib/ndpi_community_id.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/lib/ndpi_community_id.c') diff --git a/src/lib/ndpi_community_id.c b/src/lib/ndpi_community_id.c index de66b2954..6074599f1 100644 --- a/src/lib/ndpi_community_id.c +++ b/src/lib/ndpi_community_id.c @@ -67,10 +67,7 @@ /* **************************************************** */ static u_int16_t ndpi_community_id_buf_copy(u_int8_t * const dst, const void * const src, u_int16_t len) { - if(src) - memcpy(dst, src, len); - else - memset(dst, 0, len); + memcpy(dst, src, len); return len; } -- cgit v1.2.3