Skip to content

Support imported externref globals in the fuzzer#8412

Open
tlively wants to merge 2 commits intomainfrom
fuzz-global-imports
Open

Support imported externref globals in the fuzzer#8412
tlively wants to merge 2 commits intomainfrom
fuzz-global-imports

Conversation

@tlively
Copy link
Member

@tlively tlively commented Mar 4, 2026

Update fuzz_shell.js, fuzzing.h, and execution-results.h to support
importing arbitrary externrefs into fuzzer modules. Update the fuzzer
generation logic to prefer using or lazily adding such imported globals
when generating a trivial externref.

For now these externrefs do not have meaningful payloads, but a
follow-on PR will give them payloads and associated logging. Even
without that, this found a bug where wasm-ctor-eval was incorrectly
removing imported globals.

Update fuzz_shell.js, fuzzing.h, and execution-results.h to support
importing arbitrary externrefs into fuzzer modules. Update the fuzzer
generation logic to prefer using or lazily adding such imported globals
when generating a trivial externref.

For now these externrefs do not have meaningful payloads, but a
follow-on PR will give them payloads and associated logging. Even
without that, this found a bug where wasm-ctor-eval was incorrectly
removing imported globals.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant