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

Issue 2486183002: [wasm] Fix bounds check in LoadDataSegments. (Closed)

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

Description

[wasm] Fix bounds check in LoadDataSegments. The bounds check in LoadDataSegment was off by one. I also improved the error message, and fixed an issue where data was initialized even if the bounds check failed. In InstantiateModuleForTesting I allow instantiation of modules without exports. This check was legacy code from the time where instantiation and execution was still combined in a single function. R=titzer@chromium.org, rossberg@chromium.org TEST=cctest/test-run-wasm-module/InitDataAtTheUpperLimit Committed: https://crrev.com/ac183d492f12b5e4f4c2b25388647bc34aa85c75 Cr-Commit-Position: refs/heads/master@{#40856}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+44 lines, -5 lines) Patch
M src/wasm/wasm-module.cc View 1 chunk +6 lines, -2 lines 0 comments Download
M test/cctest/wasm/test-run-wasm-module.cc View 1 chunk +37 lines, -0 lines 0 comments Download
M test/common/wasm/wasm-module-runner.cc View 1 chunk +1 line, -3 lines 0 comments Download

Messages

Total messages: 11 (6 generated)
ahaas
4 years, 1 month ago (2016-11-09 10:47:16 UTC) #1
titzer
On 2016/11/09 10:47:16, ahaas wrote: lgtm
4 years, 1 month ago (2016-11-09 10:51:33 UTC) #4
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/2486183002/1
4 years, 1 month ago (2016-11-09 11:36:35 UTC) #8
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 1 month ago (2016-11-09 11:38:36 UTC) #9
commit-bot: I haz the power
4 years, 1 month ago (2016-11-17 22:27:18 UTC) #11
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/ac183d492f12b5e4f4c2b25388647bc34aa85c75
Cr-Commit-Position: refs/heads/master@{#40856}

Powered by Google App Engine
This is Rietveld 408576698