From 5cca4abb63ee93f1edd504084653f2c1b7eaa00f Mon Sep 17 00:00:00 2001 From: headshog Date: Wed, 5 Jul 2023 13:53:11 +0300 Subject: [PATCH] fixed numeric truncation error in rtcp.c --- src/lib/protocols/rtcp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/protocols/rtcp.c b/src/lib/protocols/rtcp.c index daa6c986fa8..9e22ad4524e 100644 --- a/src/lib/protocols/rtcp.c +++ b/src/lib/protocols/rtcp.c @@ -42,7 +42,7 @@ static void ndpi_search_rtcp(struct ndpi_detection_module_struct *ndpi_struct, NDPI_EXCLUDE_PROTO(ndpi_struct, flow); } else if(packet->udp != NULL) { /* Let's check first the RTCP packet length */ - u_int16_t len, offset = 0, rtcp_section_len; + u_int32_t len, offset = 0, rtcp_section_len; while(offset + 3 < packet->payload_packet_len) { len = packet->payload[2+offset] * 256 + packet->payload[2+offset+1];