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 #Messages
Total messages: 13 (7 generated)
|