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

Issue 2288773002: [wasm] Check the input of grow-memory before calling the runtime. (Closed)

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

Description

[wasm] Check the input of grow-memory before calling the runtime. If the input of grow-memory was not representable as a SMI, then the input was not passed correctly to the runtime, which caused a crash. With this CL the input of grow-memory is checked before the runtime is called. R=titzer@chromium.org, gdeepti@chromium.org TEST=mjsunit/wasm/grow-memory.js:testGrowMemoryTrapsWithNonSmiInput() Committed: https://crrev.com/9f747be5a7efa72d4e2d75c796a5f54a93d3b307 Cr-Commit-Position: refs/heads/master@{#39022}

Patch Set 1 #

Total comments: 7

Patch Set 2 : Comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -11 lines) Patch
M src/compiler/wasm-compiler.cc View 2 chunks +19 lines, -8 lines 0 comments Download
M src/runtime/runtime-wasm.cc View 1 1 chunk +2 lines, -3 lines 0 comments Download
M test/mjsunit/wasm/grow-memory.js View 1 1 chunk +11 lines, -0 lines 0 comments Download

Messages

Total messages: 24 (12 generated)
ahaas
4 years, 3 months ago (2016-08-29 15:01:47 UTC) #1
titzer
https://codereview.chromium.org/2288773002/diff/1/src/compiler/wasm-compiler.cc File src/compiler/wasm-compiler.cc (right): https://codereview.chromium.org/2288773002/diff/1/src/compiler/wasm-compiler.cc#newcode1684 src/compiler/wasm-compiler.cc:1684: input = BuildChangeUint32ToSmi(input); If I remember correctly this will ...
4 years, 3 months ago (2016-08-29 16:57:58 UTC) #6
gdeepti
https://codereview.chromium.org/2288773002/diff/1/src/compiler/wasm-compiler.cc File src/compiler/wasm-compiler.cc (right): https://codereview.chromium.org/2288773002/diff/1/src/compiler/wasm-compiler.cc#newcode1676 src/compiler/wasm-compiler.cc:1676: BranchHint::kTrue); This makes the first check in the GrowMemory ...
4 years, 3 months ago (2016-08-30 02:19:56 UTC) #7
ahaas
https://codereview.chromium.org/2288773002/diff/1/src/compiler/wasm-compiler.cc File src/compiler/wasm-compiler.cc (right): https://codereview.chromium.org/2288773002/diff/1/src/compiler/wasm-compiler.cc#newcode1676 src/compiler/wasm-compiler.cc:1676: BranchHint::kTrue); On 2016/08/30 at 02:19:56, gdeepti wrote: > This ...
4 years, 3 months ago (2016-08-30 06:49:53 UTC) #10
titzer
https://codereview.chromium.org/2288773002/diff/1/src/compiler/wasm-compiler.cc File src/compiler/wasm-compiler.cc (right): https://codereview.chromium.org/2288773002/diff/1/src/compiler/wasm-compiler.cc#newcode1684 src/compiler/wasm-compiler.cc:1684: input = BuildChangeUint32ToSmi(input); On 2016/08/30 06:49:53, ahaas wrote: > ...
4 years, 3 months ago (2016-08-30 08:25:47 UTC) #13
gdeepti
lgtm
4 years, 3 months ago (2016-08-30 16:39:45 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/2288773002/20001
4 years, 3 months ago (2016-08-30 16:40:42 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: v8_presubmit on master.tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_presubmit/builds/22891)
4 years, 3 months ago (2016-08-30 16:45:46 UTC) #18
titzer
lgtm
4 years, 3 months ago (2016-08-30 16:49:12 UTC) #19
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/2288773002/20001
4 years, 3 months ago (2016-08-30 16:49:25 UTC) #21
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 3 months ago (2016-08-30 17:00:04 UTC) #22
commit-bot: I haz the power
4 years, 3 months ago (2016-08-30 17:00:36 UTC) #24
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/9f747be5a7efa72d4e2d75c796a5f54a93d3b307
Cr-Commit-Position: refs/heads/master@{#39022}

Powered by Google App Engine
This is Rietveld 408576698