• Andreas Haas's avatar
    Reland [wasm] Stop decoding operands after error. · ca199ef8
    Andreas Haas authored
    The problem was that parts of Simd8x16ShuffleOperand were uninitialized.
    
    Original message:
    
    [wasm] Stop decoding operands after error.
    
    When we decode operands of WebAssembly instructions, we do not use the
    current pc but a pc of the instruction plus some offset. However, the
    pc of the instruction + offset can become invalid in case of a decoder
    error. Therefore we have to stop decoding operands explicitly in case
    of an error.
    
    R=clemensh@chromium.org
    
    Bug: chromium:795131
    Change-Id: I732bc23547dbe531019d81a4397d22165a26d46b
    Reviewed-on: https://chromium-review.googlesource.com/833934Reviewed-by: 's avatarClemens Hammacher <clemensh@chromium.org>
    Commit-Queue: Andreas Haas <ahaas@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#50211}
    ca199ef8
function-body-decoder-unittest.cc 107 KB