• gdeepti's avatar
    [wasm] Handle no initial memory case correctly when memory is exported · 78b8d7ed
    gdeepti authored
    Currently when the module has memory specified in the compiled bytes, but with no initial memory
    exported memory assigns a bogus buffer to the instance. When grow_memory is called on this buffer, it tries to patch an incorrect address.
     - Fix exported memory to handle no initial memory
     - Fix grow_memory to handle uninitialized buffers
    
    BUG=chromium:710844
    R=bradnelson@chromium.org
    
    Review-Url: https://codereview.chromium.org/2820223002
    Cr-Commit-Position: refs/heads/master@{#44671}
    78b8d7ed
regression-699485.js 639 Bytes