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

Issue 2170603002: cc: Fix negative integer overflow in RenderPass serialization code. (Closed)

Created:
4 years, 5 months ago by Elliot Glaysher
Modified:
4 years, 5 months ago
Reviewers:
Fady Samuel, dcheng
CC:
chromium-reviews, cc-bugs_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

cc: Fix negative integer overflow in RenderPass serialization code. It is valid to submit a RenderPass with an empty |shared_quad_state_list|. We need to deal with this case so that we don't otherwise take size() - 1, which causes a negative integer overflow. BUG=626771 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_blink_rel NOPRESUBMIT=true Committed: https://crrev.com/878c8a7bea123af169b82bf5de31e8b4356ad47c Cr-Commit-Position: refs/heads/master@{#406893}

Patch Set 1 #

Patch Set 2 : Add test. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -1 line) Patch
M cc/ipc/render_pass_struct_traits.cc View 1 chunk +2 lines, -1 line 0 comments Download
M cc/ipc/struct_traits_unittest.cc View 1 1 chunk +27 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (14 generated)
Elliot Glaysher
4 years, 5 months ago (2016-07-20 21:57:47 UTC) #4
Fady Samuel
The fix looks good but I think we need a unit test that submits an ...
4 years, 5 months ago (2016-07-20 22:09:21 UTC) #6
Elliot Glaysher
Added test, and ensured that it failed when I commented out the fix.
4 years, 5 months ago (2016-07-20 22:20:16 UTC) #7
Fady Samuel
lgtm
4 years, 5 months ago (2016-07-21 01:18:24 UTC) #12
dcheng
LGTM
4 years, 5 months ago (2016-07-21 01:29:21 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2170603002/20001
4 years, 5 months ago (2016-07-21 17:06:13 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/222444)
4 years, 5 months ago (2016-07-21 17:11:48 UTC) #17
Elliot Glaysher
(Skipping presubmit on next run since the CQ isn't recognizing dcheng's lgtm for some reason.)
4 years, 5 months ago (2016-07-21 17:23:44 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2170603002/20001
4 years, 5 months ago (2016-07-21 17:24:13 UTC) #21
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 5 months ago (2016-07-21 17:36:09 UTC) #23
commit-bot: I haz the power
4 years, 5 months ago (2016-07-21 17:38:03 UTC) #25
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/878c8a7bea123af169b82bf5de31e8b4356ad47c
Cr-Commit-Position: refs/heads/master@{#406893}

Powered by Google App Engine
This is Rietveld 408576698