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

Issue 2640453003: [wasm] Fix and tighten memory validation (Closed)

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

Description

[wasm] Fix and tighten memory validation Makes us pass the spec's memory.wast test. R=titzer@chromium.org BUG= Review-Url: https://codereview.chromium.org/2640453003 Cr-Commit-Position: refs/heads/master@{#42452} Committed: https://chromium.googlesource.com/v8/v8/+/b86ef5ce8a89b488e0d1df6468857769b4e0e25b

Patch Set 1 #

Total comments: 9

Patch Set 2 : Comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+138 lines, -63 lines) Patch
M src/wasm/function-body-decoder.cc View 1 5 chunks +11 lines, -0 lines 0 comments Download
M src/wasm/wasm-js.cc View 1 chunk +4 lines, -1 line 0 comments Download
M src/wasm/wasm-module.cc View 4 chunks +7 lines, -6 lines 0 comments Download
M test/cctest/wasm/test-run-wasm.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M test/cctest/wasm/test-wasm-trap-position.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M test/cctest/wasm/wasm-run-utils.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M test/mjsunit/regress/wasm/regression-667745.js View 1 chunk +1 line, -0 lines 0 comments Download
M test/mjsunit/wasm/grow-memory.js View 6 chunks +6 lines, -0 lines 0 comments Download
M test/mjsunit/wasm/memory-size.js View 1 chunk +1 line, -0 lines 0 comments Download
M test/mjsunit/wasm/stack.js View 5 chunks +10 lines, -8 lines 0 comments Download
M test/mjsunit/wasm/trap-location.js View 1 chunk +2 lines, -0 lines 0 comments Download
M test/mjsunit/wasm/trap-location-with-trap-if.js View 1 chunk +2 lines, -0 lines 0 comments Download
M test/unittests/wasm/function-body-decoder-unittest.cc View 17 chunks +90 lines, -48 lines 0 comments Download

Messages

Total messages: 11 (3 generated)
rossberg
3 years, 11 months ago (2017-01-17 16:10:17 UTC) #1
titzer
https://codereview.chromium.org/2640453003/diff/1/src/wasm/function-body-decoder.cc File src/wasm/function-body-decoder.cc (right): https://codereview.chromium.org/2640453003/diff/1/src/wasm/function-body-decoder.cc#newcode1115 src/wasm/function-body-decoder.cc:1115: if (!module_->has_memory) { Can you factor out a little ...
3 years, 11 months ago (2017-01-18 10:17:30 UTC) #2
rossberg
https://codereview.chromium.org/2640453003/diff/1/src/wasm/function-body-decoder.cc File src/wasm/function-body-decoder.cc (right): https://codereview.chromium.org/2640453003/diff/1/src/wasm/function-body-decoder.cc#newcode1115 src/wasm/function-body-decoder.cc:1115: if (!module_->has_memory) { On 2017/01/18 10:17:30, titzer wrote: > ...
3 years, 11 months ago (2017-01-18 11:28:09 UTC) #3
titzer
https://codereview.chromium.org/2640453003/diff/1/src/wasm/wasm-module.cc File src/wasm/wasm-module.cc (right): https://codereview.chromium.org/2640453003/diff/1/src/wasm/wasm-module.cc#newcode1561 src/wasm/wasm-module.cc:1561: if (dest_offset + source_size > mem_size || On 2017/01/18 ...
3 years, 11 months ago (2017-01-18 11:34:20 UTC) #4
rossberg
https://codereview.chromium.org/2640453003/diff/1/src/wasm/wasm-module.cc File src/wasm/wasm-module.cc (right): https://codereview.chromium.org/2640453003/diff/1/src/wasm/wasm-module.cc#newcode1561 src/wasm/wasm-module.cc:1561: if (dest_offset + source_size > mem_size || On 2017/01/18 ...
3 years, 11 months ago (2017-01-18 11:37:51 UTC) #5
titzer
lgtm https://codereview.chromium.org/2640453003/diff/1/src/wasm/wasm-module.cc File src/wasm/wasm-module.cc (right): https://codereview.chromium.org/2640453003/diff/1/src/wasm/wasm-module.cc#newcode1561 src/wasm/wasm-module.cc:1561: if (dest_offset + source_size > mem_size || On ...
3 years, 11 months ago (2017-01-18 11:40:42 UTC) #6
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/2640453003/20001
3 years, 11 months ago (2017-01-18 11:41:23 UTC) #8
commit-bot: I haz the power
3 years, 11 months ago (2017-01-18 12:08:03 UTC) #11
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/v8/v8/+/b86ef5ce8a89b488e0d1df6468857769b4e...

Powered by Google App Engine
This is Rietveld 408576698