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

Issue 2310023002: [wasm] Validate the length of strings before validating the string. (Closed)

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

Description

[wasm] Validate the length of strings before validating the string. BUG=chromium:644182 R=titzer@chromium.org TEST=module-decoder-unittest.cc:ExportNameWithInvalidStringLength Committed: https://crrev.com/1a5f8fa53665e7431124f6a9f4710d1bef8ae38b Cr-Commit-Position: refs/heads/master@{#39199}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Use consume_bytes to validate string length. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -3 lines) Patch
M src/wasm/module-decoder.cc View 1 1 chunk +6 lines, -3 lines 0 comments Download
M test/unittests/wasm/module-decoder-unittest.cc View 1 chunk +14 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (10 generated)
ahaas
4 years, 3 months ago (2016-09-06 08:58:03 UTC) #1
titzer
https://codereview.chromium.org/2310023002/diff/1/src/wasm/module-decoder.cc File src/wasm/module-decoder.cc (right): https://codereview.chromium.org/2310023002/diff/1/src/wasm/module-decoder.cc#newcode589 src/wasm/module-decoder.cc:589: if (pc_ + *length >= end_) { This can ...
4 years, 3 months ago (2016-09-06 09:02:33 UTC) #4
ahaas
https://codereview.chromium.org/2310023002/diff/1/src/wasm/module-decoder.cc File src/wasm/module-decoder.cc (right): https://codereview.chromium.org/2310023002/diff/1/src/wasm/module-decoder.cc#newcode589 src/wasm/module-decoder.cc:589: if (pc_ + *length >= end_) { On 2016/09/06 ...
4 years, 3 months ago (2016-09-06 09:22:13 UTC) #9
titzer
lgtm
4 years, 3 months ago (2016-09-06 09:25:43 UTC) #10
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/2310023002/20001
4 years, 3 months ago (2016-09-06 09:47:56 UTC) #14
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 3 months ago (2016-09-06 09:50:16 UTC) #15
commit-bot: I haz the power
4 years, 3 months ago (2016-09-06 09:50:42 UTC) #17
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/1a5f8fa53665e7431124f6a9f4710d1bef8ae38b
Cr-Commit-Position: refs/heads/master@{#39199}

Powered by Google App Engine
This is Rietveld 408576698