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

Issue 2868943004: Validate input from devtools channel to ensure that position is valid. (Closed)

Created:
3 years, 7 months ago by dtapuska
Modified:
3 years, 7 months ago
Reviewers:
dgozman
CC:
chromium-reviews, jam, darin-cc_chromium.org, pfeldman, devtools-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Validate input from devtools channel to ensure that position is valid. A check exists lower in the stack to assert that the position injected is valid. This check causes the browser to crash. Instead place a similar check to validate the input and return a verbose error in such situations. BUG=687457 Review-Url: https://codereview.chromium.org/2868943004 Cr-Commit-Position: refs/heads/master@{#470625} Committed: https://chromium.googlesource.com/chromium/src/+/694e49d71adce6c37b63d8c8efb708f1b6114e05

Patch Set 1 #

Total comments: 2

Patch Set 2 : Add param name #

Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -1 line) Patch
M content/browser/devtools/protocol/input_handler.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/devtools/protocol/input_handler.cc View 4 chunks +22 lines, -1 line 0 comments Download

Messages

Total messages: 18 (12 generated)
dtapuska
3 years, 7 months ago (2017-05-09 19:30:17 UTC) #3
dtapuska
On 2017/05/09 19:30:17, dtapuska wrote: I attempted to add tests in devtools_protocol_browsertest.cc but it appears ...
3 years, 7 months ago (2017-05-09 19:30:55 UTC) #4
dgozman
lgtm https://codereview.chromium.org/2868943004/diff/1/content/browser/devtools/protocol/input_handler.h File content/browser/devtools/protocol/input_handler.h (right): https://codereview.chromium.org/2868943004/diff/1/content/browser/devtools/protocol/input_handler.h#newcode132 content/browser/devtools/protocol/input_handler.h:132: bool PointIsWithinContents(gfx::PointF) const; IIRC, chromium mandates parameter names.
3 years, 7 months ago (2017-05-09 21:38:56 UTC) #8
dtapuska
https://codereview.chromium.org/2868943004/diff/1/content/browser/devtools/protocol/input_handler.h File content/browser/devtools/protocol/input_handler.h (right): https://codereview.chromium.org/2868943004/diff/1/content/browser/devtools/protocol/input_handler.h#newcode132 content/browser/devtools/protocol/input_handler.h:132: bool PointIsWithinContents(gfx::PointF) const; On 2017/05/09 21:38:55, dgozman wrote: > ...
3 years, 7 months ago (2017-05-10 14:05:04 UTC) #10
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/2868943004/20001
3 years, 7 months ago (2017-05-10 15:27:05 UTC) #15
commit-bot: I haz the power
3 years, 7 months ago (2017-05-10 17:15:26 UTC) #18
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/694e49d71adce6c37b63d8c8efb7...

Powered by Google App Engine
This is Rietveld 408576698