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

Issue 2416873002: [wasm] Do not generate a loop stack check upon a decoder error. (Closed)

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

Description

[wasm] Do not generate a loop stack check upon a decoder error. A decoder error sets builder_ to null, which causes builder_->StackCheck to segfault. R=titzer@chromium.org TEST=mjsunit/regress/wasm/loop-stack-check Committed: https://crrev.com/fa1f9c37d11af2e898fd8b0b708ac980cac53cfc Cr-Commit-Position: refs/heads/master@{#40271}

Patch Set 1 #

Total comments: 4

Patch Set 2 : comments addressed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -7 lines) Patch
M src/wasm/ast-decoder.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
A + test/mjsunit/regress/wasm/loop-stack-check.js View 1 chunk +3 lines, -7 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 15 (8 generated)
ahaas
4 years, 2 months ago (2016-10-13 13:20:24 UTC) #1
titzer
https://codereview.chromium.org/2416873002/diff/1/src/wasm/ast-decoder.cc File src/wasm/ast-decoder.cc (right): https://codereview.chromium.org/2416873002/diff/1/src/wasm/ast-decoder.cc#newcode1638 src/wasm/ast-decoder.cc:1638: if (failed()) return loop_body_env; I think you should move ...
4 years, 2 months ago (2016-10-13 13:24:42 UTC) #4
ahaas
https://codereview.chromium.org/2416873002/diff/1/src/wasm/ast-decoder.cc File src/wasm/ast-decoder.cc (right): https://codereview.chromium.org/2416873002/diff/1/src/wasm/ast-decoder.cc#newcode1638 src/wasm/ast-decoder.cc:1638: if (failed()) return loop_body_env; On 2016/10/13 at 13:24:42, titzer ...
4 years, 2 months ago (2016-10-13 13:31:55 UTC) #7
titzer
lgtm
4 years, 2 months ago (2016-10-13 13:42:58 UTC) #8
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/2416873002/20001
4 years, 2 months ago (2016-10-13 14:16:51 UTC) #12
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 2 months ago (2016-10-13 14:32:51 UTC) #13
commit-bot: I haz the power
4 years, 2 months ago (2016-10-13 14:33:17 UTC) #15
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/fa1f9c37d11af2e898fd8b0b708ac980cac53cfc
Cr-Commit-Position: refs/heads/master@{#40271}

Powered by Google App Engine
This is Rietveld 408576698