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

Issue 2820193003: Worker: Raise an exception when an invalid feature number is passed to WorkerInternals::CountFeature (Closed)

Created:
3 years, 8 months ago by nhiroki
Modified:
3 years, 8 months ago
Reviewers:
falken, Yuta Kitamura
CC:
chromium-reviews, blink-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Worker: Raise an exception when an invalid feature number is passed to WorkerInternals::CountFeature Before this CL, when an invalid feature number[1] is passed to WorkerInternals::CountFeature/CountDeprecation, it ends up a check failure. This is not a problem in real world applications because the internals APIs are used only for testing, but it makes the fuzzer sad (see the report in the issue). To make the fuzzer happy, this CL makes the functions raise an exception when such an invalid value is given. [1] feature < 0 || UseCounter::kNumberOfFeatures < feature BUG=712003 Review-Url: https://codereview.chromium.org/2820193003 Cr-Commit-Position: refs/heads/master@{#465137} Committed: https://chromium.googlesource.com/chromium/src/+/4b267ce12fab17dfa38615933571eae96faf63f1

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -6 lines) Patch
M third_party/WebKit/Source/core/testing/WorkerInternals.h View 2 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/testing/WorkerInternals.cpp View 2 chunks +15 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/testing/WorkerInternals.idl View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 16 (10 generated)
nhiroki
PTAL, thanks!
3 years, 8 months ago (2017-04-18 02:03:22 UTC) #5
falken
lgtm
3 years, 8 months ago (2017-04-18 04:02:01 UTC) #6
nhiroki
+yutak@, can you review this as an owner of core/? Thanks!
3 years, 8 months ago (2017-04-18 04:09:45 UTC) #10
Yuta Kitamura
lgtm
3 years, 8 months ago (2017-04-18 04:22:04 UTC) #11
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/2820193003/1
3 years, 8 months ago (2017-04-18 04:26:25 UTC) #13
commit-bot: I haz the power
3 years, 8 months ago (2017-04-18 04:30:16 UTC) #16
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/4b267ce12fab17dfa38615933571...

Powered by Google App Engine
This is Rietveld 408576698