From d51f8929e0b2c57e0c5a4b89c2f25a6ca330728d Mon Sep 17 00:00:00 2001 From: headshog <124502670+headshog@users.noreply.github.com> Date: Wed, 5 Jul 2023 15:29:44 +0300 Subject: fixed numeric truncation error in rtcp.c (#2033) --- 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 daa6c986f..9e22ad452 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]; -- cgit v1.2.3