summaryrefslogtreecommitdiff
path: root/test/gtest/local-graph.cpp
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2024-11-08 10:16:52 -0800
committerGitHub <noreply@github.com>2024-11-08 10:16:52 -0800
commit8c0429ac09d06d6056687e36fd4fb37f61681233 (patch)
treec26a80f84cbee89a09f3c4c114180cb8d1cb30df /test/gtest/local-graph.cpp
parentb30067658459ca167e58fe0dee9d85ea6100c223 (diff)
downloadbinaryen-8c0429ac09d06d6056687e36fd4fb37f61681233.tar.gz
binaryen-8c0429ac09d06d6056687e36fd4fb37f61681233.tar.bz2
binaryen-8c0429ac09d06d6056687e36fd4fb37f61681233.zip
[EH] Fuzz calls from JS by calling wasm exports, sometimes catching (#7067)
This adds two new imports to fuzzer modules: * call-export, which gets an export index and calls it. * call-export-catch, which does the call in a try-catch, swallowing any error, and returning 1 if it saw an error. The former gives us calls back into the wasm, possibly making various trips between wasm and JS in interesting ways. The latter adds a try-catch which helps fuzz wasm EH. We do these calls using a wasm export index, i.e., the index in the list of exports. This is simple, but it does have the downside that it makes executing the wasm sensitive to changes in exports (e.g. wasm-merge adds more), which requires some handling in the fuzzer.
Diffstat (limited to 'test/gtest/local-graph.cpp')
0 files changed, 0 insertions, 0 deletions