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

Issue 1656233002: Avoid undefined behavior in vp8 screenshare_layers (Closed)

Created:
4 years, 10 months ago by sprang_webrtc
Modified:
4 years, 10 months ago
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com, zhengzhonghou_agora.io, video-team_agora.io, mflodman
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Avoid undefined behavior in vp8 screenshare_layers active_layer_ could be dereferenced while being -1... Also added som DCHECKs BUG=webrtc:5490 Committed: https://crrev.com/2ddb8bd3593a2a2797fea16f358cc89c140f6154 Cr-Commit-Position: refs/heads/master@{#11486}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Addressed comments #

Patch Set 3 : FrameEncoded can be called with active_layer -1 if num TL=1 #

Patch Set 4 : Test error + brain fartin ConfigureBitrates #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -7 lines) Patch
M webrtc/modules/video_coding/codecs/vp8/screenshare_layers.cc View 1 2 3 6 chunks +11 lines, -7 lines 0 comments Download
M webrtc/modules/video_coding/codecs/vp8/screenshare_layers_unittest.cc View 1 2 3 2 chunks +4 lines, -0 lines 0 comments Download

Messages

Total messages: 29 (15 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1656233002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1656233002/1
4 years, 10 months ago (2016-02-02 09:47:08 UTC) #2
commit-bot: I haz the power
Dry run: No L-G-T-M from a valid reviewer yet. Only full committers are accepted. Even ...
4 years, 10 months ago (2016-02-02 09:47:09 UTC) #4
sprang_webrtc
4 years, 10 months ago (2016-02-02 19:45:39 UTC) #6
pbos-webrtc
lgtm with 2 comments https://codereview.webrtc.org/1656233002/diff/1/webrtc/modules/video_coding/codecs/vp8/screenshare_layers.cc File webrtc/modules/video_coding/codecs/vp8/screenshare_layers.cc (right): https://codereview.webrtc.org/1656233002/diff/1/webrtc/modules/video_coding/codecs/vp8/screenshare_layers.cc#newcode150 webrtc/modules/video_coding/codecs/vp8/screenshare_layers.cc:150: if (active_layer_ != -1 && ...
4 years, 10 months ago (2016-02-02 21:16:14 UTC) #7
sprang
https://codereview.webrtc.org/1656233002/diff/1/webrtc/modules/video_coding/codecs/vp8/screenshare_layers.cc File webrtc/modules/video_coding/codecs/vp8/screenshare_layers.cc (right): https://codereview.webrtc.org/1656233002/diff/1/webrtc/modules/video_coding/codecs/vp8/screenshare_layers.cc#newcode150 webrtc/modules/video_coding/codecs/vp8/screenshare_layers.cc:150: if (active_layer_ != -1 && On 2016/02/02 21:16:14, pbos-webrtc ...
4 years, 10 months ago (2016-02-03 10:05:37 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1656233002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1656233002/20001
4 years, 10 months ago (2016-02-03 10:05:53 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: linux_asan on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/linux_asan/builds/12234) presubmit on tryserver.webrtc (JOB_FAILED, ...
4 years, 10 months ago (2016-02-03 10:21:38 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1656233002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1656233002/60001
4 years, 10 months ago (2016-02-04 10:00:18 UTC) #17
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/3233)
4 years, 10 months ago (2016-02-04 10:04:22 UTC) #19
sprang_webrtc
+stefan as owner
4 years, 10 months ago (2016-02-04 10:06:06 UTC) #21
stefan-webrtc
On 2016/02/04 10:06:06, språng wrote: > +stefan as owner lgtm
4 years, 10 months ago (2016-02-04 11:57:46 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1656233002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1656233002/60001
4 years, 10 months ago (2016-02-04 11:58:27 UTC) #25
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 10 months ago (2016-02-04 11:59:57 UTC) #27
commit-bot: I haz the power
4 years, 10 months ago (2016-02-04 12:00:03 UTC) #29
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/2ddb8bd3593a2a2797fea16f358cc89c140f6154
Cr-Commit-Position: refs/heads/master@{#11486}

Powered by Google App Engine
This is Rietveld 408576698