• ahaas's avatar
    [wasm] Fix br_table in the wasm interpreter to use varuint32. · a3b77d56
    ahaas authored
    The wasm interpreter crashed because it interpreted the table of
    br_table as a table of uint8, but according to the spec it is a table of
    varint32. Therefore the wasm interpreter misinterpreted 0x80 0x00 as 128
    and not as 0, which caused a crash.
    
    R=tizer@chromium.org
    BUG=chromium:660262
    TEST=cctest/test-run-wasm/RunWasmInterpreted_Regression_660262
    
    Review-Url: https://codereview.chromium.org/2463063002
    Cr-Commit-Position: refs/heads/master@{#40708}
    a3b77d56
wasm-interpreter.cc 62.7 KB