Skip to content

Commit

Permalink
fixed numeric truncation error in rtcp.c (#2033)
Browse files Browse the repository at this point in the history
  • Loading branch information
headshog authored Jul 5, 2023
1 parent 2e5004d commit d51f892
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/protocols/rtcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit d51f892

Please sign in to comment.