diff options
author | Alon Zakai <azakai@google.com> | 2024-10-23 10:17:13 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-23 10:17:13 -0700 |
commit | dcc70bbfb16c2f8fce29dad94d80d1b78123655f (patch) | |
tree | 05db3b38ea848cef1010eac458549f012342b2fa /src/support/debug.cpp | |
parent | 0d9b7508e5de1ca7befef493ed3e357b8a5613a1 (diff) | |
download | binaryen-dcc70bbfb16c2f8fce29dad94d80d1b78123655f.tar.gz binaryen-dcc70bbfb16c2f8fce29dad94d80d1b78123655f.tar.bz2 binaryen-dcc70bbfb16c2f8fce29dad94d80d1b78123655f.zip |
[EH] Fuzz throws from JS (#7027)
We already generated (throw ..) instructions in wasm, but it makes sense to model
throws from outside as well, as they cross the module boundary. This adds a new fuzzer
import to the generated modules, "throw", that just does a throw from JS etc.
Also be more precise about handling fuzzing-support imports in fuzz-exec: we now
check that logging functions start with "log*" and error otherwise (this check is
now needed given we have "throw", which is not logging). Also fix a minor issue
with name conflicts for logging functions by using getValidFunctionName for them,
both for logging and for throw.
Diffstat (limited to 'src/support/debug.cpp')
0 files changed, 0 insertions, 0 deletions