• ahaas's avatar
    [wasm] Indirect calls without function table cause validation errors. · 4db05d40
    ahaas authored
    The spec defines that indirect calls in WebAssembly code should cause a
    validation error if no function table exists.
    
    The CL contains the following changes:
    1) Throw a validation error for indirect calls if the function table
       not exist.
    2) Do not create TF nodes to throw a runtime error for indirect calls
       if the function table does not exist.
    3) Fix existing unit tests by creating a dummy function table.
    4) Add new a new test which tests that indirect calls without function
       table cause a validation error.
    
    R=rossberg@chromium.org
    CC=titzer@chromium.org
    
    TEST=unittests/AstDecoderTest.IndirectCallsWithoutTableCrash
    
    Review-Url: https://codereview.chromium.org/2484623002
    Cr-Commit-Position: refs/heads/master@{#40852}
    4db05d40
Name
Last commit
Last update
..
OWNERS Loading commit data...
ast-decoder.cc Loading commit data...
ast-decoder.h Loading commit data...
decoder.h Loading commit data...
leb-helper.h Loading commit data...
managed.h Loading commit data...
module-decoder.cc Loading commit data...
module-decoder.h Loading commit data...
signature-map.cc Loading commit data...
signature-map.h Loading commit data...
wasm-debug.cc Loading commit data...
wasm-debug.h Loading commit data...
wasm-external-refs.cc Loading commit data...
wasm-external-refs.h Loading commit data...
wasm-interpreter.cc Loading commit data...
wasm-interpreter.h Loading commit data...
wasm-js.cc Loading commit data...
wasm-js.h Loading commit data...
wasm-macro-gen.h Loading commit data...
wasm-module-builder.cc Loading commit data...
wasm-module-builder.h Loading commit data...
wasm-module.cc Loading commit data...
wasm-module.h Loading commit data...
wasm-opcodes.cc Loading commit data...
wasm-opcodes.h Loading commit data...
wasm-result.cc Loading commit data...
wasm-result.h Loading commit data...