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

Issue 2649553002: [wasm] Check segment bounds beforehand (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] Check segment bounds beforehand Also fixes check for table segments to be performed against actual size not declared one. Makes us pass memory.wast and linking.wast tests (modulo issue 5860). R=titzer@chromium.org BUG= Review-Url: https://codereview.chromium.org/2649553002 Cr-Commit-Position: refs/heads/master@{#42607} Committed: https://chromium.googlesource.com/v8/v8/+/fc44a1d9cab4b4bff1a817928fe7b6e98ef8be5e

Patch Set 1 #

Total comments: 9

Patch Set 2 : Comments #

Patch Set 3 : Check against actual not declared table bound #

Patch Set 4 : Explicit cast to make compiler happy #

Patch Set 5 : YA explicit cast #

Patch Set 6 : Explicit cast fest pt 3 #

Patch Set 7 : Fix error message #

Patch Set 8 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+82 lines, -43 lines) Patch
M src/wasm/wasm-js.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M src/wasm/wasm-module.cc View 1 2 3 4 5 6 7 10 chunks +78 lines, -39 lines 0 comments Download
M test/cctest/wasm/test-run-wasm-module.cc View 2 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 44 (24 generated)
rossberg
3 years, 11 months ago (2017-01-20 14:21:42 UTC) #1
titzer
https://codereview.chromium.org/2649553002/diff/1/src/wasm/wasm-module.cc File src/wasm/wasm-module.cc (right): https://codereview.chromium.org/2649553002/diff/1/src/wasm/wasm-module.cc#newcode1303 src/wasm/wasm-module.cc:1303: uint32_t table_size = table.min_size; Does the spec say we ...
3 years, 11 months ago (2017-01-20 14:28:34 UTC) #2
rossberg
https://codereview.chromium.org/2649553002/diff/1/src/wasm/wasm-module.cc File src/wasm/wasm-module.cc (right): https://codereview.chromium.org/2649553002/diff/1/src/wasm/wasm-module.cc#newcode1303 src/wasm/wasm-module.cc:1303: uint32_t table_size = table.min_size; On 2017/01/20 14:28:34, titzer wrote: ...
3 years, 11 months ago (2017-01-20 14:57:35 UTC) #3
titzer
https://codereview.chromium.org/2649553002/diff/1/src/wasm/wasm-module.cc File src/wasm/wasm-module.cc (right): https://codereview.chromium.org/2649553002/diff/1/src/wasm/wasm-module.cc#newcode1303 src/wasm/wasm-module.cc:1303: uint32_t table_size = table.min_size; On 2017/01/20 14:57:35, rossberg wrote: ...
3 years, 11 months ago (2017-01-20 15:03:21 UTC) #4
rossberg
On 2017/01/20 15:03:21, titzer wrote: > https://codereview.chromium.org/2649553002/diff/1/src/wasm/wasm-module.cc > File src/wasm/wasm-module.cc (right): > > https://codereview.chromium.org/2649553002/diff/1/src/wasm/wasm-module.cc#newcode1303 > ...
3 years, 11 months ago (2017-01-23 12:33:33 UTC) #6
titzer
lgtm
3 years, 11 months ago (2017-01-23 12:58:52 UTC) #7
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/2649553002/40001
3 years, 11 months ago (2017-01-23 12:59:31 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: v8_win64_rel_ng on master.tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_win64_rel_ng/builds/21332) v8_win_nosnap_shared_rel_ng on master.tryserver.v8 (JOB_FAILED, ...
3 years, 11 months ago (2017-01-23 13:00:06 UTC) #14
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/2649553002/40001
3 years, 11 months ago (2017-01-23 13:11:25 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: v8_win64_rel_ng on master.tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_win64_rel_ng/builds/21333) v8_win_compile_dbg on master.tryserver.v8 (JOB_FAILED, ...
3 years, 11 months ago (2017-01-23 13:11:58 UTC) #18
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/2649553002/60001
3 years, 11 months ago (2017-01-23 13:15:44 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: v8_win64_rel_ng on master.tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_win64_rel_ng/builds/21334) v8_win_compile_dbg on master.tryserver.v8 (JOB_FAILED, ...
3 years, 11 months ago (2017-01-23 13:16:35 UTC) #23
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/2649553002/80001
3 years, 11 months ago (2017-01-23 13:20:04 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: v8_win64_rel_ng on master.tryserver.v8 (JOB_FAILED, no build URL) v8_win_compile_dbg on ...
3 years, 11 months ago (2017-01-23 13:20:54 UTC) #28
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/2649553002/100001
3 years, 11 months ago (2017-01-23 13:25:45 UTC) #31
commit-bot: I haz the power
Try jobs failed on following builders: v8_win64_rel_ng on master.tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_win64_rel_ng/builds/21337) v8_win_nosnap_shared_rel_ng on master.tryserver.v8 (JOB_FAILED, ...
3 years, 11 months ago (2017-01-23 13:26:14 UTC) #33
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/2649553002/120001
3 years, 11 months ago (2017-01-23 16:09:35 UTC) #36
commit-bot: I haz the power
Failed to apply patch for src/wasm/wasm-js.cc: While running git apply --index -p1; error: patch failed: ...
3 years, 11 months ago (2017-01-23 16:41:03 UTC) #38
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/2649553002/140001
3 years, 11 months ago (2017-01-23 16:50:45 UTC) #41
commit-bot: I haz the power
3 years, 11 months ago (2017-01-23 17:21:47 UTC) #44
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://chromium.googlesource.com/v8/v8/+/fc44a1d9cab4b4bff1a817928fe7b6e98ef...

Powered by Google App Engine
This is Rietveld 408576698