| 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 bdae3c4806fc24d0a55814f57747d1f80df6d86c..439cd01a9aa09c35ab2be30a03f1371be9280afe 100644
|
| --- a/webrtc/modules/rtp_rtcp/source/rtp_utility.cc
|
| +++ b/webrtc/modules/rtp_rtcp/source/rtp_utility.cc
|
| @@ -319,6 +319,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.
|
|
|