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

Issue 2656713003: [wasm] Fix check failure on invalid name section (Closed)

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

Description

[wasm] Fix check failure on invalid name section After decoding an invalid function name (e.g. OOB), we stored the parsed offset and length into the WasmFunction anyway, resulting in a runtime CHECK failure later on. This CL fixes this, and adds a regression test. R=titzer@chromium.org CC=mtrofin@chromium.org, bradnelson@chromium.org BUG=chromium:684858 Review-Url: https://codereview.chromium.org/2656713003 Cr-Commit-Position: refs/heads/master@{#42654} Committed: https://chromium.googlesource.com/v8/v8/+/0ec3a264bcba5c899f7e72fa5b98dd191477e272

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -1 line) Patch
M src/wasm/module-decoder.cc View 1 chunk +1 line, -1 line 4 comments Download
A test/mjsunit/regress/wasm/regression-684858.js View 1 chunk +34 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (9 generated)
Clemens Hammacher
3 years, 11 months ago (2017-01-25 10:46:48 UTC) #1
titzer
lgtm
3 years, 11 months ago (2017-01-25 10:48:17 UTC) #4
bradn
https://codereview.chromium.org/2656713003/diff/1/src/wasm/module-decoder.cc File src/wasm/module-decoder.cc (right): https://codereview.chromium.org/2656713003/diff/1/src/wasm/module-decoder.cc#newcode623 src/wasm/module-decoder.cc:623: if (inner.ok() && func_index < module->functions.size()) { Ah I ...
3 years, 11 months ago (2017-01-25 11:18:05 UTC) #6
Clemens Hammacher
On 2017/01/25 at 11:18:05, bradnelson wrote: > https://codereview.chromium.org/2656713003/diff/1/src/wasm/module-decoder.cc > File src/wasm/module-decoder.cc (right): > > https://codereview.chromium.org/2656713003/diff/1/src/wasm/module-decoder.cc#newcode623 ...
3 years, 11 months ago (2017-01-25 11:35:42 UTC) #9
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/2656713003/1
3 years, 11 months ago (2017-01-25 11:35:52 UTC) #11
commit-bot: I haz the power
Committed patchset #1 (id:1) as https://chromium.googlesource.com/v8/v8/+/0ec3a264bcba5c899f7e72fa5b98dd191477e272
3 years, 11 months ago (2017-01-25 11:37:54 UTC) #14
titzer
https://codereview.chromium.org/2656713003/diff/1/src/wasm/module-decoder.cc File src/wasm/module-decoder.cc (right): https://codereview.chromium.org/2656713003/diff/1/src/wasm/module-decoder.cc#newcode623 src/wasm/module-decoder.cc:623: if (inner.ok() && func_index < module->functions.size()) { On 2017/01/25 ...
3 years, 11 months ago (2017-01-25 11:53:29 UTC) #15
Mircea Trofin
https://codereview.chromium.org/2656713003/diff/1/src/wasm/module-decoder.cc File src/wasm/module-decoder.cc (right): https://codereview.chromium.org/2656713003/diff/1/src/wasm/module-decoder.cc#newcode623 src/wasm/module-decoder.cc:623: if (inner.ok() && func_index < module->functions.size()) { On 2017/01/25 ...
3 years, 11 months ago (2017-01-25 15:58:51 UTC) #17
Mircea Trofin
https://codereview.chromium.org/2656713003/diff/1/src/wasm/module-decoder.cc File src/wasm/module-decoder.cc (right): https://codereview.chromium.org/2656713003/diff/1/src/wasm/module-decoder.cc#newcode623 src/wasm/module-decoder.cc:623: if (inner.ok() && func_index < module->functions.size()) { On 2017/01/25 ...
3 years, 11 months ago (2017-01-25 16:42:01 UTC) #18
Mircea Trofin
3 years, 11 months ago (2017-01-25 16:42:02 UTC) #19
Message was sent while issue was closed.

          

Powered by Google App Engine
This is Rietveld 408576698