FS-11751: process_rtcp_packet() bounds check

This commit is contained in:
Dragos Oancea committed 2019-06-06 16:59:08 +00:00
1 parent 0a02a33023
commit 32de076b18
1 file changed
+3
+3
View File
@@ -6848,6 +6848,9 @@ static switch_status_t process_rtcp_packet(switch_rtp_t *rtp_session, switch_siz
switch_status_t status = SWITCH_STATUS_FALSE;
rtcp_msg_t *msg = rtp_session->rtcp_recv_msg_p;
if (remain < sizeof(switch_rtcp_ext_hdr_t) || remain > sizeof(rtcp_msg_t)) {
return status;
}
if (msg->header.version != 2) {
if (msg->header.version == 0) {
if (rtp_session->ice.ice_user) {