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

Issue 2574133002: [wasm] Enforce limits for maximums for many WebAssembly binary entities. (Closed)

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

Description

[wasm] Enforce limits for maximums for many WebAssembly binary entities. This CL moves even more limits to wasm-limits.h and enforces limits for types, functions, parameter counts, return counts, local counts, imports, globals, and exports. R=clemensh@chromium.org, ahaas@chromium.org BUG= Committed: https://crrev.com/058939ab93428ba6c959497e224da2c1eee7a408 Cr-Commit-Position: refs/heads/master@{#41699}

Patch Set 1 #

Total comments: 9

Patch Set 2 : Fix stupid printf #

Total comments: 11

Patch Set 3 : Address review comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+93 lines, -57 lines) Patch
M src/wasm/ast-decoder.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/wasm/module-decoder.cc View 1 2 14 chunks +41 lines, -49 lines 0 comments Download
M src/wasm/wasm-limits.h View 1 2 1 chunk +13 lines, -2 lines 0 comments Download
M src/wasm/wasm-module.h View 1 chunk +0 lines, -1 line 0 comments Download
M test/unittests/wasm/ast-decoder-unittest.cc View 2 chunks +11 lines, -3 lines 0 comments Download
M test/unittests/wasm/module-decoder-unittest.cc View 1 2 3 chunks +27 lines, -1 line 0 comments Download

Messages

Total messages: 20 (13 generated)
titzer
4 years ago (2016-12-14 12:22:05 UTC) #1
ahaas
lgtm with nits. https://codereview.chromium.org/2574133002/diff/20001/src/wasm/module-decoder.cc File src/wasm/module-decoder.cc (right): https://codereview.chromium.org/2574133002/diff/20001/src/wasm/module-decoder.cc#newcode379 src/wasm/module-decoder.cc:379: uint32_t table_count = consume_count("table count", 1); ...
4 years ago (2016-12-14 12:44:14 UTC) #8
Clemens Hammacher
lgtm with nits https://codereview.chromium.org/2574133002/diff/1/src/wasm/module-decoder.cc File src/wasm/module-decoder.cc (left): https://codereview.chromium.org/2574133002/diff/1/src/wasm/module-decoder.cc#oldcode557 src/wasm/module-decoder.cc:557: init->entries.reserve(SafeReserve(num_elem)); We could still reserve here ...
4 years ago (2016-12-14 12:50:26 UTC) #9
titzer
https://codereview.chromium.org/2574133002/diff/1/src/wasm/module-decoder.cc File src/wasm/module-decoder.cc (left): https://codereview.chromium.org/2574133002/diff/1/src/wasm/module-decoder.cc#oldcode557 src/wasm/module-decoder.cc:557: init->entries.reserve(SafeReserve(num_elem)); On 2016/12/14 12:50:26, Clemens Hammacher wrote: > We ...
4 years ago (2016-12-14 17:19:54 UTC) #12
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/2574133002/40001
4 years ago (2016-12-14 17:20:08 UTC) #15
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years ago (2016-12-14 17:46:09 UTC) #18
commit-bot: I haz the power
4 years ago (2016-12-14 17:46:58 UTC) #20
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/058939ab93428ba6c959497e224da2c1eee7a408
Cr-Commit-Position: refs/heads/master@{#41699}

Powered by Google App Engine
This is Rietveld 408576698