зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1480088: Added length check for uplfec. r=dminor
Differential Revision: https://phabricator.services.mozilla.com/D38786 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
e691fe7a86
Коммит
bb245ddcf0
|
@ -80,6 +80,11 @@ int32_t UlpfecReceiverImpl::AddReceivedRedPacket(
|
||||||
<< "Received RED packet with different SSRC than expected; dropping.";
|
<< "Received RED packet with different SSRC than expected; dropping.";
|
||||||
return -1;
|
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_);
|
rtc::CritScope cs(&crit_sect_);
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче