commit | f292e3151155d90ca6dd9d0a1a51b4de67c02572 | [log] [tgz] |
---|---|---|
author | danilchap <danilchap@webrtc.org> | Thu Sep 22 07:24:30 2016 -0700 |
committer | Commit bot <commit-bot@chromium.org> | Thu Sep 22 14:24:38 2016 +0000 |
tree | 28370e4d3bc74e2e885821bdb2e6c8b6dd3720d9 | |
parent | aac9d6fb25338ab2e345a1a0c478590757202ae0 [diff] |
Relax too strict DCHECKs while parsing rtcp reports BUG=chromium:649129 Review-Url: https://codereview.webrtc.org/2361493004 Cr-Commit-Position: refs/heads/master@{#14353}
diff --git a/webrtc/modules/rtp_rtcp/source/rtcp_packet/receiver_report.cc b/webrtc/modules/rtp_rtcp/source/rtcp_packet/receiver_report.cc index 10744ad..a393181 100644 --- a/webrtc/modules/rtp_rtcp/source/rtcp_packet/receiver_report.cc +++ b/webrtc/modules/rtp_rtcp/source/rtcp_packet/receiver_report.cc
@@ -50,7 +50,7 @@ next_report_block += ReportBlock::kLength; } - RTC_DCHECK_EQ(next_report_block - packet.payload(), + RTC_DCHECK_LE(next_report_block - packet.payload(), static_cast<ptrdiff_t>(packet.payload_size_bytes())); return true; }
diff --git a/webrtc/modules/rtp_rtcp/source/rtcp_packet/sender_report.cc b/webrtc/modules/rtp_rtcp/source/rtcp_packet/sender_report.cc index 8f90ce6..4795bf1 100644 --- a/webrtc/modules/rtp_rtcp/source/rtcp_packet/sender_report.cc +++ b/webrtc/modules/rtp_rtcp/source/rtcp_packet/sender_report.cc
@@ -68,7 +68,7 @@ next_block += ReportBlock::kLength; } // Double check we didn't read beyond provided buffer. - RTC_DCHECK_EQ(next_block - payload, + RTC_DCHECK_LE(next_block - payload, static_cast<ptrdiff_t>(packet.payload_size_bytes())); return true; }