v8/test/common/wasm
Andreas Haas d2da19c780 [wasm][fuzzer] Check 'main' export to be a function before execution
In the test case the module contained a memory which got exported by the
name 'main'. The fuzzer crashed when it tried to cast the memory to a
function to execute it. This CL checks that 'main' is a function before
doint the cast.

R=clemensh@chromium.org

Bug: chromium:763349
Change-Id: I9a21413c8038a7547f8b59057afea2870b15499a
Reviewed-on: https://chromium-review.googlesource.com/659978
Reviewed-by: Clemens Hammacher <clemensh@chromium.org>
Commit-Queue: Andreas Haas <ahaas@chromium.org>
Cr-Commit-Position: refs/heads/master@{#47941}
2017-09-11 11:44:19 +00:00
..
flag-utils.h [cleanup] Templatize the EnableFlagScope 2017-06-12 15:26:12 +00:00
test-signatures.h [wasm] Rename wasm::LocalType to wasm::ValueType and kAst* to kWasm* 2016-12-21 13:43:00 +00:00
wasm-macro-gen.h [cleanup] Remove return after UNREACHABLE 2017-05-22 13:10:01 +00:00
wasm-module-runner.cc [wasm][fuzzer] Check 'main' export to be a function before execution 2017-09-11 11:44:19 +00:00
wasm-module-runner.h [wasm] Avoid executing infinite loops in the wasm fuzzers 2017-09-07 12:35:45 +00:00