Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(254)

Issue 1226203002: Avoid overflow in checking for emulation bytes in rbsp. (Closed)

Created:
5 years, 5 months ago by noahric
Modified:
5 years, 5 months ago
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com, mflodman
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Avoid overflow in checking for emulation bytes in rbsp. Also fixed an arithmetic issue where a 0 0 3 at the end of the rbsp would include the 3 (that's not a legal bitstream anyway, so it probably wasn't a real bug, but it was incorrect). This maintains the underflow fix from an earlier CL (https://codereview.webrtc.org/1219493004/). The overflow fix is virtually impossible to hit (hence no unit tests), but is there for strict correctness. BUG= Committed: https://crrev.com/43e7d3bc150788045b549f4ab94a91095980d059 Cr-Commit-Position: refs/heads/master@{#9581}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Added clarifying comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -1 line) Patch
M webrtc/modules/rtp_rtcp/source/h264_sps_parser.cc View 1 1 chunk +5 lines, -1 line 0 comments Download

Messages

Total messages: 16 (6 generated)
noahric
Peter: here's the overflow fix + the arithmetic fix. I know you're less happy with ...
5 years, 5 months ago (2015-07-09 00:46:39 UTC) #2
pbos-webrtc
lgtm, let's be friends (but please comment) https://codereview.webrtc.org/1226203002/diff/1/webrtc/modules/rtp_rtcp/source/h264_sps_parser.cc File webrtc/modules/rtp_rtcp/source/h264_sps_parser.cc (right): https://codereview.webrtc.org/1226203002/diff/1/webrtc/modules/rtp_rtcp/source/h264_sps_parser.cc#newcode39 webrtc/modules/rtp_rtcp/source/h264_sps_parser.cc:39: if (byte_length_ ...
5 years, 5 months ago (2015-07-09 09:20:08 UTC) #3
noahric
On 2015/07/09 09:20:08, pbos-webrtc wrote: > lgtm, let's be friends (but please comment) > > ...
5 years, 5 months ago (2015-07-09 22:05:16 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1226203002/20001
5 years, 5 months ago (2015-07-09 22:06:17 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: presubmit on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/presubmit/builds/139)
5 years, 5 months ago (2015-07-09 22:10:08 UTC) #9
noahric
Stefan, can you take a look and LGTM for owners if it looks ok? Thanks!
5 years, 5 months ago (2015-07-09 22:11:35 UTC) #11
stefan-webrtc
lgtm
5 years, 5 months ago (2015-07-14 12:16:42 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1226203002/20001
5 years, 5 months ago (2015-07-14 16:34:33 UTC) #14
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 5 months ago (2015-07-14 17:45:07 UTC) #15
commit-bot: I haz the power
5 years, 5 months ago (2015-07-14 17:45:17 UTC) #16
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/43e7d3bc150788045b549f4ab94a91095980d059
Cr-Commit-Position: refs/heads/master@{#9581}

Powered by Google App Engine
This is Rietveld 408576698