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

Issue 7042021: Check for integer overflow when validating API function arguments. (Closed)

Created:
9 years, 7 months ago by Ben Olmstead
Modified:
9 years, 7 months ago
CC:
chromium-reviews, Erik does not do reviews, Paweł Hajdan Jr., Aaron Boodman, pam+watch_chromium.org, brettw-cc_chromium.org, darin-cc_chromium.org
Visibility:
Public.

Description

Check for integer overflow when validating API function arguments. BUG=65874 TEST=Added API test. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=86343

Patch Set 1 #

Total comments: 5

Patch Set 2 : !== and added new json_schema_test #

Patch Set 3 : Update copyright headers #

Unified diffs Side-by-side diffs Delta from patch set Stats (+59 lines, -3 lines) Patch
M chrome/browser/extensions/window_open_apitest.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/renderer/extensions/json_schema_unittest.cc View 1 2 2 chunks +5 lines, -1 line 0 comments Download
M chrome/renderer/resources/json_schema.js View 1 2 3 chunks +6 lines, -1 line 0 comments Download
A chrome/test/data/extensions/api_test/window_open/argument_overflow/manifest.json View 1 chunk +7 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/window_open/argument_overflow/test.html View 1 chunk +17 lines, -0 lines 0 comments Download
M chrome/test/data/extensions/json_schema_test.js View 1 2 2 chunks +20 lines, -1 line 0 comments Download

Messages

Total messages: 9 (0 generated)
Ben Olmstead
9 years, 7 months ago (2011-05-18 23:09:14 UTC) #1
asargent_no_longer_on_chrome
+kasperl to double-check the javascript part, as I don't know off the top of my ...
9 years, 7 months ago (2011-05-19 18:36:48 UTC) #2
Erik does not do reviews
+arv Given timezone differences, arv may be a quicker answer to your JS question. Erik ...
9 years, 7 months ago (2011-05-19 18:42:28 UTC) #3
Ben Olmstead
http://codereview.chromium.org/7042021/diff/1/chrome/browser/extensions/window_open_apitest.cc File chrome/browser/extensions/window_open_apitest.cc (right): http://codereview.chromium.org/7042021/diff/1/chrome/browser/extensions/window_open_apitest.cc#newcode104 chrome/browser/extensions/window_open_apitest.cc:104: ASSERT_TRUE(RunExtensionTest("window_open/argument_overflow")) << message_; On 2011/05/19 18:36:48, Antony Sargent wrote: ...
9 years, 7 months ago (2011-05-19 20:34:18 UTC) #4
arv (Not doing code reviews)
LGTM http://codereview.chromium.org/7042021/diff/1/chrome/renderer/resources/json_schema.js File chrome/renderer/resources/json_schema.js (right): http://codereview.chromium.org/7042021/diff/1/chrome/renderer/resources/json_schema.js#newcode415 chrome/renderer/resources/json_schema.js:415: if (schema.type == "integer" && (instance | 0) ...
9 years, 7 months ago (2011-05-19 21:10:04 UTC) #5
Ben Olmstead
Added json_schema_test and switched to !==.
9 years, 7 months ago (2011-05-19 23:07:57 UTC) #6
asargent_no_longer_on_chrome
LGTM
9 years, 7 months ago (2011-05-19 23:21:28 UTC) #7
commit-bot: I haz the power
Presubmit check for 7042021-3004 failed and returned exit status 1. Running presubmit commit checks ...
9 years, 7 months ago (2011-05-19 23:37:37 UTC) #8
commit-bot: I haz the power
9 years, 7 months ago (2011-05-19 23:42:58 UTC) #9
Presubmit check for 7042021-4002 failed and returned exit status 1.

Running presubmit commit checks ...

** Presubmit ERRORS **
Run the command: svn pset svn:eol-style LF \
 
chrome/test/data/extensions/api_test/window_open/argument_overflow/manifest.json

Powered by Google App Engine
This is Rietveld 408576698