aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNardi Ivan <nardi.ivan@gmail.com>2023-06-01 08:09:05 +0200
committerIvan Nardi <12729895+IvanNardi@users.noreply.github.com>2023-06-08 17:07:25 +0200
commit3e640a13a4decb2068aa82fdbc147b75a063705e (patch)
treee9d4b84e6c814be48e4d938269532f8bf0ee0ece
parentfd4cb10190f00ab4a114c26c95f7fe6e1cb5056b (diff)
QUIC: fix a memory access error
Found while fuzzing
-rw-r--r--src/lib/protocols/quic.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/protocols/quic.c b/src/lib/protocols/quic.c
index 2c6fd45cb..fe5ec1621 100644
--- a/src/lib/protocols/quic.c
+++ b/src/lib/protocols/quic.c
@@ -1660,6 +1660,9 @@ static int ndpi_search_quic_extra(struct ndpi_detection_module_struct *ndpi_stru
NDPI_LOG_DBG(ndpi_struct, "search QUIC extra func\n");
+ if(packet->payload_packet_len == 0)
+ return 1;
+
if (is_ch_reassembler_pending(flow)) {
ndpi_search_quic(ndpi_struct, flow);
if(is_ch_reassembler_pending(flow))