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

Issue 2373613004: [wasm] Fix bounds check of a store instruction after a grow_memory instruction (Closed)

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

Description

Fix bounds check of a store instruction after a grow_memory instruction - Store instruction with an offset bigger than GrowMemory offset should handle out of bounds correctly - Refactor to separate runnning from compile so arguments can be passed in to module builder tests. BUG=chromium:644670 R=ahaas@chromium.org, titzer@chromium.org Committed: https://crrev.com/64e43be959630cd0640d9ddb92ffdc9511679410 Cr-Commit-Position: refs/heads/master@{#39840}

Patch Set 1 #

Patch Set 2 : Cleanup #

Patch Set 3 : Formatting #

Patch Set 4 : Fix trybots #

Patch Set 5 : Rebase #

Total comments: 2

Patch Set 6 : Ben's review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+229 lines, -25 lines) Patch
M src/compiler/wasm-compiler.cc View 1 2 3 4 5 1 chunk +25 lines, -10 lines 0 comments Download
M test/cctest/wasm/test-run-wasm-module.cc View 1 2 3 4 2 chunks +133 lines, -0 lines 0 comments Download
M test/common/wasm/wasm-module-runner.h View 1 1 chunk +9 lines, -0 lines 0 comments Download
M test/common/wasm/wasm-module-runner.cc View 1 2 3 4 4 chunks +30 lines, -15 lines 0 comments Download
M test/mjsunit/wasm/grow-memory.js View 1 2 3 4 1 chunk +32 lines, -0 lines 0 comments Download

Messages

Total messages: 35 (28 generated)
gdeepti
4 years, 2 months ago (2016-09-28 06:29:36 UTC) #19
gdeepti
Just realized ahaas@ is on vacation, adding mtrofin@.
4 years, 2 months ago (2016-09-28 17:53:10 UTC) #22
titzer
lgtm with comment https://codereview.chromium.org/2373613004/diff/80001/src/compiler/wasm-compiler.cc File src/compiler/wasm-compiler.cc (right): https://codereview.chromium.org/2373613004/diff/80001/src/compiler/wasm-compiler.cc#newcode2776 src/compiler/wasm-compiler.cc:2776: (static_cast<uint64_t>(offset) + memsize) > size) { ...
4 years, 2 months ago (2016-09-28 18:09:52 UTC) #23
gdeepti
https://codereview.chromium.org/2373613004/diff/80001/src/compiler/wasm-compiler.cc File src/compiler/wasm-compiler.cc (right): https://codereview.chromium.org/2373613004/diff/80001/src/compiler/wasm-compiler.cc#newcode2776 src/compiler/wasm-compiler.cc:2776: (static_cast<uint64_t>(offset) + memsize) > size) { On 2016/09/28 18:09:51, ...
4 years, 2 months ago (2016-09-28 20:29:15 UTC) #26
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/2373613004/100001
4 years, 2 months ago (2016-09-28 20:53:09 UTC) #31
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 2 months ago (2016-09-28 20:55:47 UTC) #33
commit-bot: I haz the power
4 years, 2 months ago (2016-09-28 20:56:20 UTC) #35
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/64e43be959630cd0640d9ddb92ffdc9511679410
Cr-Commit-Position: refs/heads/master@{#39840}

Powered by Google App Engine
This is Rietveld 408576698