Added MPEG TS protocol

Fixed possible decoding loop in RTCP dissector
Added test pcap for mpegts
This commit is contained in:
Luca
2015-06-25 03:57:50 -07:00
parent 40292a737a
commit 7e28cc0981
9 changed files with 78 additions and 5 deletions
+1 -1
View File
@@ -42,7 +42,7 @@ void ndpi_search_rtcp(struct ndpi_detection_module_struct *ndpi_struct, struct n
len = packet->payload[2+offset] * 256 + packet->payload[2+offset+1];
rtcp_section_len = (len + 1) * 4;
if((offset+rtcp_section_len) > packet->payload_packet_len)
if(((offset+rtcp_section_len) > packet->payload_packet_len) || (rtcp_section_len == 0))
goto exclude_rtcp;
else
offset += rtcp_section_len;