Description[wasm] Indirect calls without function table cause validation errors.
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
Committed: https://crrev.com/4db05d405b564a832476ffbe8e157bab7b608ae0
Cr-Commit-Position: refs/heads/master@{#40852}
Patch Set 1 #
Total comments: 2
Patch Set 2 : Put the validation into the Validate function #Patch Set 3 : Fix another test #Patch Set 4 : Add include #Patch Set 5 : try to export symbols #
Messages
Total messages: 35 (21 generated)
|