author | Nils Ohlmeier [:drno] <drno@ohlmeier.org> |
Mon, 22 Jul 2019 10:31:55 +0000 (2019-07-22) | |
changeset 483722 | cc5e3d514f2827b5a851277e962eeba6ba6c77a5 |
parent 483721 | 17267dd9b2281d253c06133e990ba2ed330a7519 |
child 483723 | a858e44115324243417d830fafa8a4a8eb57e5a0 |
push id | 90561 |
push user | nohlmeier@mozilla.com |
push date | Mon, 22 Jul 2019 15:03:37 +0000 (2019-07-22) |
treeherder | autoland@cc5e3d514f28 [default view] [failures only] |
perfherder | [talos] [build metrics] [platform microbench] (compared to previous push) |
reviewers | dminor |
bugs | 1480088 |
milestone | 70.0a1 |
first release with | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
last release without | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
media/webrtc/trunk/webrtc/modules/rtp_rtcp/source/ulpfec_receiver_impl.cc | file | annotate | diff | comparison | revisions |
--- a/media/webrtc/trunk/webrtc/modules/rtp_rtcp/source/ulpfec_receiver_impl.cc +++ b/media/webrtc/trunk/webrtc/modules/rtp_rtcp/source/ulpfec_receiver_impl.cc @@ -75,16 +75,21 @@ int32_t UlpfecReceiverImpl::AddReceivedR const uint8_t* incoming_rtp_packet, size_t packet_length, uint8_t ulpfec_payload_type) { if (header.ssrc != ssrc_) { RTC_LOG(LS_WARNING) << "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; size_t payload_data_length = packet_length - header.headerLength; if (payload_data_length == 0) { RTC_LOG(LS_WARNING) << "Corrupt/truncated FEC packet.";