diff options
author | Luca <deri@ntop.org> | 2015-06-25 03:57:50 -0700 |
---|---|---|
committer | Luca <deri@ntop.org> | 2015-06-25 03:57:50 -0700 |
commit | 7e28cc0981dfcbbea9a08fd622a408f16184347a (patch) | |
tree | f2c539cd290b6a5a5aa0adff55227c77d6a26cef /src/lib/protocols/rtcp.c | |
parent | 40292a737a994f0a9c36bcaf2c20a269e5673594 (diff) |
Added MPEG TS protocol
Fixed possible decoding loop in RTCP dissector
Added test pcap for mpegts
Diffstat (limited to 'src/lib/protocols/rtcp.c')
-rw-r--r-- | src/lib/protocols/rtcp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/protocols/rtcp.c b/src/lib/protocols/rtcp.c index f618261dd..0c84c085f 100644 --- a/src/lib/protocols/rtcp.c +++ b/src/lib/protocols/rtcp.c @@ -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; |