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

Issue 2271803004: [wasm] Bound the allowed number of locals. (Closed)

Created:
4 years, 3 months ago by ahaas
Modified:
4 years, 3 months ago
Reviewers:
titzer
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[wasm] Bound the allowed number of locals. This CL fixes the first bug I found with the new fuzzing. The problem is that the number of locals is unbounded. This CL bounds the number of locals of one type with 8000000, an arbitrary number. R=titzer@chromium.org BUG= Committed: https://crrev.com/71f93e6001195a7f70ecf449af9d894ead57d297 Cr-Commit-Position: refs/heads/master@{#38936}

Patch Set 1 #

Patch Set 2 : Set the limit of local decls to 8000000 #

Total comments: 1

Patch Set 3 : Add a constant for the limit and test it. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -1 line) Patch
M src/wasm/ast-decoder.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M src/wasm/ast-decoder.cc View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M test/unittests/wasm/ast-decoder-unittest.cc View 1 2 2 chunks +21 lines, -1 line 0 comments Download

Messages

Total messages: 23 (16 generated)
ahaas
4 years, 3 months ago (2016-08-25 06:58:17 UTC) #1
ahaas
On 2016/08/25 at 07:40:16, ahaas wrote: > Description was changed from > > ========== > ...
4 years, 3 months ago (2016-08-25 07:40:42 UTC) #9
titzer
lgtm with comment https://codereview.chromium.org/2271803004/diff/20001/src/wasm/ast-decoder.cc File src/wasm/ast-decoder.cc (right): https://codereview.chromium.org/2271803004/diff/20001/src/wasm/ast-decoder.cc#newcode667 src/wasm/ast-decoder.cc:667: if (count > 8000000) { Can ...
4 years, 3 months ago (2016-08-25 08:00:27 UTC) #12
ahaas
On 2016/08/25 at 08:00:27, titzer wrote: > lgtm with comment > > https://codereview.chromium.org/2271803004/diff/20001/src/wasm/ast-decoder.cc > File ...
4 years, 3 months ago (2016-08-26 08:16:53 UTC) #15
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/2271803004/40001
4 years, 3 months ago (2016-08-26 09:10:24 UTC) #20
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 3 months ago (2016-08-26 09:13:02 UTC) #21
commit-bot: I haz the power
4 years, 3 months ago (2016-08-26 09:13:29 UTC) #23
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/71f93e6001195a7f70ecf449af9d894ead57d297
Cr-Commit-Position: refs/heads/master@{#38936}

Powered by Google App Engine
This is Rietveld 408576698