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

Issue 2402633002: [wasm] Fix memory bug (Closed)

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

Description

[wasm] Fix memory bug In CreateModuleObjectFromBytes, pointers to the raw bytes will be stored inside the decoded WasmModule, and still used after allocating V8 stuff in WasmModule::CompileFunctions. We thus cannot pass a raw pointer to the V8 heap. Fix this by copying the bytes before decoding. R=mtrofin@chromium.org, titzer@chromium.org Committed: https://crrev.com/7461fc6c2175911988accb7dccb828423d9de3e5 Cr-Commit-Position: refs/heads/master@{#40077}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Add TODO #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -2 lines) Patch
M src/api.cc View 1 1 chunk +7 lines, -2 lines 0 comments Download

Messages

Total messages: 13 (7 generated)
Clemens Hammacher
4 years, 2 months ago (2016-10-07 09:20:13 UTC) #3
titzer
lgtm https://codereview.chromium.org/2402633002/diff/1/src/api.cc File src/api.cc (right): https://codereview.chromium.org/2402633002/diff/1/src/api.cc#newcode7249 src/api.cc:7249: i::ScopedVector<unsigned char> bytes_copy(data->length()); Can you leave a TODO ...
4 years, 2 months ago (2016-10-07 09:29:58 UTC) #6
Clemens Hammacher
https://codereview.chromium.org/2402633002/diff/1/src/api.cc File src/api.cc (right): https://codereview.chromium.org/2402633002/diff/1/src/api.cc#newcode7249 src/api.cc:7249: i::ScopedVector<unsigned char> bytes_copy(data->length()); On 2016/10/07 09:29:58, titzer wrote: > ...
4 years, 2 months ago (2016-10-07 09:43:27 UTC) #7
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/2402633002/20001
4 years, 2 months ago (2016-10-07 09:43:59 UTC) #10
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 2 months ago (2016-10-07 10:12:32 UTC) #11
commit-bot: I haz the power
4 years, 2 months ago (2016-10-07 10:12:43 UTC) #13
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/7461fc6c2175911988accb7dccb828423d9de3e5
Cr-Commit-Position: refs/heads/master@{#40077}

Powered by Google App Engine
This is Rietveld 408576698