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

Issue 196423027: Move SoftwareFrameData overflow checks to the IPC code. (Closed)

Created:
6 years, 9 months ago by danakj
Modified:
6 years, 9 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, cc-bugs_chromium.org, jam, jbauman
Visibility:
Public.

Description

Move SoftwareFrameData overflow checks to the IPC code. Instead of doing this check in SoftwareFrameManager and silently dropping the frame, if we have an overflow, drop the IPC from the renderer (and cause a renderer crash which we can see). Also move computation code for the frame size in bytes to SoftwareFrameData so the computation and the check can be beside each other. Also add unit tests for SoftwareFrameData IPC. R=ccameron@chromium.org, jschuh@chromium.org, piman@chromium.org, ccameron, piman BUG=348332 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=258418

Patch Set 1 #

Total comments: 2

Patch Set 2 : softwareframesize: #

Unified diffs Side-by-side diffs Delta from patch set Stats (+145 lines, -16 lines) Patch
M cc/output/software_frame_data.h View 2 chunks +4 lines, -0 lines 0 comments Download
M cc/output/software_frame_data.cc View 1 chunk +13 lines, -0 lines 0 comments Download
M content/browser/renderer_host/software_frame_manager.cc View 1 chunk +3 lines, -9 lines 0 comments Download
M content/common/cc_messages.h View 2 chunks +8 lines, -7 lines 0 comments Download
M content/common/cc_messages.cc View 1 1 chunk +38 lines, -0 lines 0 comments Download
M content/common/cc_messages_unittest.cc View 1 3 chunks +79 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
danakj
Hello, this is a followup for https://codereview.chromium.org/196283018. What do you think? Thanks.
6 years, 9 months ago (2014-03-19 18:51:32 UTC) #1
piman
lgtm https://codereview.chromium.org/196423027/diff/1/content/common/cc_messages.cc File content/common/cc_messages.cc (right): https://codereview.chromium.org/196423027/diff/1/content/common/cc_messages.cc#newcode760 content/common/cc_messages.cc:760: WriteParam(m, p.size); Do you want to add a ...
6 years, 9 months ago (2014-03-19 18:57:17 UTC) #2
danakj
https://codereview.chromium.org/196423027/diff/1/content/common/cc_messages.cc File content/common/cc_messages.cc (right): https://codereview.chromium.org/196423027/diff/1/content/common/cc_messages.cc#newcode760 content/common/cc_messages.cc:760: WriteParam(m, p.size); On 2014/03/19 18:57:17, piman wrote: > Do ...
6 years, 9 months ago (2014-03-19 18:58:32 UTC) #3
danakj
Here's a patchset with a DCHECK and WriteParam in the unit test WDYT? Like it ...
6 years, 9 months ago (2014-03-19 19:11:16 UTC) #4
danakj
6 years, 9 months ago (2014-03-19 19:28:49 UTC) #5
piman
LGTM. I think if the serialization changes, the unit tests will catch it and we'll ...
6 years, 9 months ago (2014-03-19 20:33:31 UTC) #6
danakj
ccameron, jschuh: can you review please?
6 years, 9 months ago (2014-03-19 20:37:15 UTC) #7
ccameron
On 2014/03/19 20:37:15, danakj wrote: > ccameron, jschuh: can you review please? I'd vaguely prefer ...
6 years, 9 months ago (2014-03-19 23:34:17 UTC) #8
danakj
On 2014/03/19 23:34:17, ccameron1 wrote: > On 2014/03/19 20:37:15, danakj wrote: > > ccameron, jschuh: ...
6 years, 9 months ago (2014-03-19 23:36:02 UTC) #9
jschuh
On 2014/03/19 23:36:02, danakj wrote: > On 2014/03/19 23:34:17, ccameron1 wrote: > > On 2014/03/19 ...
6 years, 9 months ago (2014-03-20 16:33:04 UTC) #10
ccameron
On 2014/03/19 23:36:02, danakj wrote: > On 2014/03/19 23:34:17, ccameron1 wrote: > > On 2014/03/19 ...
6 years, 9 months ago (2014-03-20 17:36:01 UTC) #11
danakj
Cool, thanks!
6 years, 9 months ago (2014-03-20 17:36:52 UTC) #12
danakj
The CQ bit was checked by danakj@chromium.org
6 years, 9 months ago (2014-03-20 17:36:55 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/196423027/20001
6 years, 9 months ago (2014-03-20 17:39:49 UTC) #14
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-20 19:54:54 UTC) #15
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) content_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=285299
6 years, 9 months ago (2014-03-20 19:54:54 UTC) #16
danakj
The CQ bit was checked by danakj@chromium.org
6 years, 9 months ago (2014-03-20 19:58:15 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/196423027/20001
6 years, 9 months ago (2014-03-20 20:00:28 UTC) #18
danakj
6 years, 9 months ago (2014-03-20 21:43:44 UTC) #19
Message was sent while issue was closed.
Committed patchset #2 manually as r258418 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698