| Index: webrtc/modules/rtp_rtcp/source/rtp_utility.cc
|
| diff --git a/webrtc/modules/rtp_rtcp/source/rtp_utility.cc b/webrtc/modules/rtp_rtcp/source/rtp_utility.cc
|
| index 131b54ad50ee47f4bf9bded80dbc3aba864200d5..e38b3a3b4346b5dbd9b29a02346c3fc77459b4db 100644
|
| --- a/webrtc/modules/rtp_rtcp/source/rtp_utility.cc
|
| +++ b/webrtc/modules/rtp_rtcp/source/rtp_utility.cc
|
| @@ -323,6 +323,13 @@ void RtpHeaderParser::ParseOneByteExtensionHeader(
|
| return;
|
| }
|
|
|
| + if (ptrRTPDataExtensionEnd - ptr < (len + 1)) {
|
| + LOG(LS_WARNING) << "Incorrect one-byte extension len: " << (len + 1)
|
| + << ", bytes left in buffer: "
|
| + << (ptrRTPDataExtensionEnd - ptr);
|
| + return;
|
| + }
|
| +
|
| RTPExtensionType type;
|
| if (ptrExtensionMap->GetType(id, &type) != 0) {
|
| // If we encounter an unknown extension, just skip over it.
|
|
|