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

Issue 11617006: Add some bounds for gfx ipc deserialization. (Closed)

Created:
8 years ago by jschuh
Modified:
7 years, 11 months ago
Reviewers:
danakj, piman
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam
Visibility:
Public.

Description

Add some bounds for gfx ipc deserialization. BUG=167680 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=175496

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Total comments: 11

Patch Set 7 : #

Total comments: 9

Patch Set 8 : #

Patch Set 9 : #

Patch Set 10 : #

Total comments: 2

Patch Set 11 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -15 lines) Patch
M content/public/common/common_param_traits.cc View 1 2 3 4 5 6 7 8 9 3 chunks +12 lines, -15 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
jschuh
7 years, 12 months ago (2012-12-27 19:57:48 UTC) #1
jschuh
@piman - We discussed this a few weeks ago, and it looks like this bounds ...
7 years, 11 months ago (2013-01-05 01:56:09 UTC) #2
piman
Overall I'm ok with that, modulo nits, but I'll let Dana comment on whether the ...
7 years, 11 months ago (2013-01-07 19:05:56 UTC) #3
danakj
https://chromiumcodereview.appspot.com/11617006/diff/32001/content/public/common/common_param_traits.cc File content/public/common/common_param_traits.cc (right): https://chromiumcodereview.appspot.com/11617006/diff/32001/content/public/common/common_param_traits.cc#newcode184 content/public/common/common_param_traits.cc:184: (h && w > ((std::numeric_limits<int>::max() / 4) / h))) ...
7 years, 11 months ago (2013-01-07 19:19:03 UTC) #4
danakj
https://chromiumcodereview.appspot.com/11617006/diff/32001/content/public/common/common_param_traits.cc File content/public/common/common_param_traits.cc (right): https://chromiumcodereview.appspot.com/11617006/diff/32001/content/public/common/common_param_traits.cc#newcode184 content/public/common/common_param_traits.cc:184: (h && w > ((std::numeric_limits<int>::max() / 4) / h))) ...
7 years, 11 months ago (2013-01-07 19:21:52 UTC) #5
jschuh
https://codereview.chromium.org/11617006/diff/32001/content/public/common/common_param_traits.cc File content/public/common/common_param_traits.cc (right): https://codereview.chromium.org/11617006/diff/32001/content/public/common/common_param_traits.cc#newcode173 content/public/common/common_param_traits.cc:173: void ParamTraits<gfx::Size>::Write(Message* m, const gfx::Size& p) { On 2013/01/07 ...
7 years, 11 months ago (2013-01-07 22:24:14 UTC) #6
piman
https://codereview.chromium.org/11617006/diff/31005/content/public/common/common_param_traits.cc File content/public/common/common_param_traits.cc (right): https://codereview.chromium.org/11617006/diff/31005/content/public/common/common_param_traits.cc#newcode265 content/public/common/common_param_traits.cc:265: m->WriteInt(p.y()); y u no do WriteParam(m, p.origin()) too ? ...
7 years, 11 months ago (2013-01-07 22:51:35 UTC) #7
danakj
https://codereview.chromium.org/11617006/diff/32001/content/public/common/common_param_traits.cc File content/public/common/common_param_traits.cc (right): https://codereview.chromium.org/11617006/diff/32001/content/public/common/common_param_traits.cc#newcode184 content/public/common/common_param_traits.cc:184: (h && w > ((std::numeric_limits<int>::max() / 4) / h))) ...
7 years, 11 months ago (2013-01-07 22:56:37 UTC) #8
jschuh
https://codereview.chromium.org/11617006/diff/31005/content/public/common/common_param_traits.cc File content/public/common/common_param_traits.cc (right): https://codereview.chromium.org/11617006/diff/31005/content/public/common/common_param_traits.cc#newcode265 content/public/common/common_param_traits.cc:265: m->WriteInt(p.y()); On 2013/01/07 22:51:35, piman wrote: > y u ...
7 years, 11 months ago (2013-01-07 22:58:08 UTC) #9
jschuh
Okay, let's try again. https://codereview.chromium.org/11617006/diff/32001/content/public/common/common_param_traits.cc File content/public/common/common_param_traits.cc (right): https://codereview.chromium.org/11617006/diff/32001/content/public/common/common_param_traits.cc#newcode184 content/public/common/common_param_traits.cc:184: (h && w > ((std::numeric_limits<int>::max() ...
7 years, 11 months ago (2013-01-08 00:08:45 UTC) #10
jschuh
https://codereview.chromium.org/11617006/diff/32001/content/public/common/common_param_traits.cc File content/public/common/common_param_traits.cc (right): https://codereview.chromium.org/11617006/diff/32001/content/public/common/common_param_traits.cc#newcode184 content/public/common/common_param_traits.cc:184: (h && w > ((std::numeric_limits<int>::max() / 4) / h))) ...
7 years, 11 months ago (2013-01-08 00:43:32 UTC) #11
jschuh
Okay, trimmed to just checking for positive sizes. From the security end we'll see investigate ...
7 years, 11 months ago (2013-01-08 03:56:54 UTC) #12
danakj
LGTM https://codereview.chromium.org/11617006/diff/38004/content/common/cc_messages_unittest.cc File content/common/cc_messages_unittest.cc (right): https://codereview.chromium.org/11617006/diff/38004/content/common/cc_messages_unittest.cc#newcode470 content/common/cc_messages_unittest.cc:470: arbitrary_resource1.size = gfx::Size(3718, 12312); These don't seem needed ...
7 years, 11 months ago (2013-01-08 04:06:05 UTC) #13
piman
lgtm
7 years, 11 months ago (2013-01-08 04:11:53 UTC) #14
jschuh
https://codereview.chromium.org/11617006/diff/38004/content/common/cc_messages_unittest.cc File content/common/cc_messages_unittest.cc (right): https://codereview.chromium.org/11617006/diff/38004/content/common/cc_messages_unittest.cc#newcode470 content/common/cc_messages_unittest.cc:470: arbitrary_resource1.size = gfx::Size(3718, 12312); On 2013/01/08 04:06:06, danakj wrote: ...
7 years, 11 months ago (2013-01-08 04:12:50 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jschuh@chromium.org/11617006/36011
7 years, 11 months ago (2013-01-08 04:16:33 UTC) #16
commit-bot: I haz the power
7 years, 11 months ago (2013-01-08 07:43:06 UTC) #17
Message was sent while issue was closed.
Change committed as 175496

Powered by Google App Engine
This is Rietveld 408576698