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 3fef05355c701d7235b546b520220cd99d0bddff..0d083bd92a5289f5c4e940c40a0eea096c01190e 100644 |
--- a/webrtc/modules/rtp_rtcp/source/rtp_utility.cc |
+++ b/webrtc/modules/rtp_rtcp/source/rtp_utility.cc |
@@ -355,6 +355,8 @@ bool RtpHeaderParser::Parse(RTPHeader& header, |
} |
header.headerLength += XLen; |
} |
+ if (header.headerLength + header.paddingLength > static_cast<size_t>(length)) |
+ return false; |
return true; |
} |