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

Issue 2705233002: [wasm] Enforce module size limit early enough (Closed)

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

Description

[wasm] Enforce module size limit early enough The limit needs to be checked before casting the length to int in ModuleWireBytes. R=titzer@chromium.org BUG=694433 Review-Url: https://codereview.chromium.org/2705233002 Cr-Commit-Position: refs/heads/master@{#43352} Committed: https://chromium.googlesource.com/v8/v8/+/cc805e42af5ace69c5f52cc3fa50ed509a30fe28

Patch Set 1 #

Total comments: 2

Patch Set 2 : Use <start,length> instead of <start,end> #

Patch Set 3 : Use <start,length> instead of <start,end> #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -7 lines) Patch
M src/wasm/wasm-js.cc View 1 2 3 chunks +11 lines, -7 lines 0 comments Download
A test/mjsunit/regress/wasm/regression-694433.js View 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (13 generated)
Clemens Hammacher
3 years, 10 months ago (2017-02-21 15:01:22 UTC) #1
titzer
lgtm with nit https://codereview.chromium.org/2705233002/diff/1/src/wasm/wasm-js.cc File src/wasm/wasm-js.cc (right): https://codereview.chromium.org/2705233002/diff/1/src/wasm/wasm-js.cc#newcode157 src/wasm/wasm-js.cc:157: static_cast<int64_t>(i::wasm::kV8MaxWasmModuleSize), for size_t you can use ...
3 years, 10 months ago (2017-02-21 15:10:22 UTC) #6
Clemens Hammacher
Looking at the code again, I realized that we always computed end as "start + ...
3 years, 10 months ago (2017-02-21 17:48:16 UTC) #11
titzer
lgtm in fact, lebtm (looks even better to me)
3 years, 10 months ago (2017-02-21 17:50:55 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/2705233002/40001
3 years, 10 months ago (2017-02-21 18:11:28 UTC) #16
commit-bot: I haz the power
3 years, 10 months ago (2017-02-21 18:13:07 UTC) #19
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/v8/v8/+/cc805e42af5ace69c5f52cc3fa50ed509a3...

Powered by Google App Engine
This is Rietveld 408576698