Title: [239082] branches/safari-606-branch/Source/ThirdParty/libwebrtc/Source/webrtc/modules/rtp_rtcp/source/ulpfec_receiver_impl.cc
- Revision
- 239082
- Author
- alanc...@apple.com
- Date
- 2018-12-11 13:12:01 -0800 (Tue, 11 Dec 2018)
Log Message
Apply patch. rdar://problem/46603462
Modified Paths
Diff
Modified: branches/safari-606-branch/Source/ThirdParty/libwebrtc/Source/webrtc/modules/rtp_rtcp/source/ulpfec_receiver_impl.cc (239081 => 239082)
--- branches/safari-606-branch/Source/ThirdParty/libwebrtc/Source/webrtc/modules/rtp_rtcp/source/ulpfec_receiver_impl.cc 2018-12-11 20:25:21 UTC (rev 239081)
+++ branches/safari-606-branch/Source/ThirdParty/libwebrtc/Source/webrtc/modules/rtp_rtcp/source/ulpfec_receiver_impl.cc 2018-12-11 21:12:01 UTC (rev 239082)
@@ -80,7 +80,11 @@
<< "Received RED packet with different SSRC than expected; dropping.";
return -1;
}
-
+ if (packet_length > IP_PACKET_SIZE) {
+ RTC_LOG(LS_WARNING) << "Received RED packet with length exceeds maximum IP "
+ "packet size; dropping.";
+ return -1;
+ }
rtc::CritScope cs(&crit_sect_);
uint8_t red_header_length = 1;
@@ -180,6 +184,7 @@
} else if (received_packet->is_fec) {
++packet_counter_.num_fec_packets;
+
// everything behind the RED header
memcpy(received_packet->pkt->data,
incoming_rtp_packet + header.headerLength + red_header_length,
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes