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

Issue 220093002: cc: Prevent integer overflow with software TextureMailbox. (Closed)

Created:
6 years, 8 months ago by danakj
Modified:
6 years, 8 months ago
Reviewers:
jbauman, piman
CC:
chromium-reviews, yusukes+watch_chromium.org, yukishiino+watch_chromium.org, jam, penghuang+watch_chromium.org, sievers+watch_chromium.org, jbauman+watch_chromium.org, nona+watch_chromium.org, darin-cc_chromium.org, kalyank, piman+watch_chromium.org, cc-bugs_chromium.org, James Su, danakj+watch_chromium.org, miu+watch_chromium.org
Visibility:
Public.

Description

cc: Prevent integer overflow with software TextureMailbox. Perform a CHECK() when creating a software TextureMailbox since these come from outside of cc's control. Do unsigned integer multiplication to produce an unsigned result, preventing overflow when possible. R=piman@chromium.org BUG=348332 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=260969

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -7 lines) Patch
M cc/layers/texture_layer_impl.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M cc/resources/texture_mailbox.h View 2 chunks +4 lines, -1 line 0 comments Download
M cc/resources/texture_mailbox.cc View 2 chunks +17 lines, -3 lines 2 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 21 (0 generated)
danakj
6 years, 8 months ago (2014-03-31 22:28:24 UTC) #1
piman
lgtm https://codereview.chromium.org/220093002/diff/1/cc/resources/texture_mailbox.cc File cc/resources/texture_mailbox.cc (right): https://codereview.chromium.org/220093002/diff/1/cc/resources/texture_mailbox.cc#newcode33 cc/resources/texture_mailbox.cc:33: CHECK(CheckedSharedMemorySizeInBytes().IsValid()); Can cc generate one for mask layers ...
6 years, 8 months ago (2014-03-31 22:33:54 UTC) #2
danakj
https://codereview.chromium.org/220093002/diff/1/cc/resources/texture_mailbox.cc File cc/resources/texture_mailbox.cc (right): https://codereview.chromium.org/220093002/diff/1/cc/resources/texture_mailbox.cc#newcode33 cc/resources/texture_mailbox.cc:33: CHECK(CheckedSharedMemorySizeInBytes().IsValid()); On 2014/03/31 22:33:54, piman wrote: > Can cc ...
6 years, 8 months ago (2014-03-31 22:34:49 UTC) #3
danakj
The CQ bit was checked by danakj@chromium.org
6 years, 8 months ago (2014-03-31 22:34:57 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/220093002/1
6 years, 8 months ago (2014-03-31 22:35:16 UTC) #5
piman
On Mon, Mar 31, 2014 at 3:34 PM, <danakj@chromium.org> wrote: > > https://codereview.chromium.org/220093002/diff/1/cc/ > resources/texture_mailbox.cc ...
6 years, 8 months ago (2014-03-31 22:40:45 UTC) #6
danakj
On 2014/03/31 22:40:45, piman wrote: > On Mon, Mar 31, 2014 at 3:34 PM, <mailto:danakj@chromium.org> ...
6 years, 8 months ago (2014-03-31 22:41:37 UTC) #7
jbauman
On 2014/03/31 22:41:37, danakj wrote: > On 2014/03/31 22:40:45, piman wrote: > > On Mon, ...
6 years, 8 months ago (2014-03-31 22:44:50 UTC) #8
danakj
On Mon, Mar 31, 2014 at 6:44 PM, <jbauman@chromium.org> wrote: > On 2014/03/31 22:41:37, danakj ...
6 years, 8 months ago (2014-03-31 22:46:30 UTC) #9
piman
On Mon, Mar 31, 2014 at 3:44 PM, <jbauman@chromium.org> wrote: > On 2014/03/31 22:41:37, danakj ...
6 years, 8 months ago (2014-03-31 22:47:05 UTC) #10
danakj
On Mon, Mar 31, 2014 at 6:46 PM, Antoine Labour <piman@chromium.org> wrote: > > > ...
6 years, 8 months ago (2014-03-31 22:55:17 UTC) #11
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-01 00:13:39 UTC) #12
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) base_unittests, browser_tests, interactive_ui_tests, net_unittests, unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=291582
6 years, 8 months ago (2014-04-01 00:13:40 UTC) #13
danakj
The CQ bit was checked by danakj@chromium.org
6 years, 8 months ago (2014-04-01 14:59:36 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/220093002/1
6 years, 8 months ago (2014-04-01 14:59:38 UTC) #15
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-01 16:04:12 UTC) #16
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) net_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=291932
6 years, 8 months ago (2014-04-01 16:04:12 UTC) #17
danakj
The CQ bit was checked by danakj@chromium.org
6 years, 8 months ago (2014-04-01 16:48:23 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/220093002/1
6 years, 8 months ago (2014-04-01 16:48:54 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/220093002/1
6 years, 8 months ago (2014-04-01 22:33:52 UTC) #20
commit-bot: I haz the power
6 years, 8 months ago (2014-04-01 22:59:21 UTC) #21
Message was sent while issue was closed.
Change committed as 260969

Powered by Google App Engine
This is Rietveld 408576698