Skip to content

Fuzzer: Add a flag to import another module in --translate-to-fuzz#7949

Merged
kripken merged 33 commits intoWebAssembly:mainfrom
kripken:add-fuzz-imports
Oct 7, 2025
Merged

Fuzzer: Add a flag to import another module in --translate-to-fuzz#7949
kripken merged 33 commits intoWebAssembly:mainfrom
kripken:add-fuzz-imports

Conversation

@kripken
Copy link
Copy Markdown
Member

@kripken kripken commented Oct 6, 2025

-ttf --fuzz-import=foo.wasm will generate a fuzz new file, and that file
will import parts of the given foo.wasm. So far, this imports a subset
of the functions of that other module.

Use this in the Two fuzzer as well as in ClusterFuzz.

Add fuzz_shell.js support for importing a second module as "primary".
We had that for --fuzz-split mode, and this just expands that to any
time we have a second module.

@kripken kripken requested a review from tlively October 6, 2025 19:37
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GitHub shows this as a binary file. Is it really, or does GitHub just assume it's a TrueType font file? If it is binary, should we make it a text file to make it easy to tweak as necessary? Also maybe we should avoid the .ttf extension here.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is binary data, yeah, it is the fuzzer input (random raw bytes).

@kripken kripken merged commit f12f084 into WebAssembly:main Oct 7, 2025
17 checks passed
@kripken kripken deleted the add-fuzz-imports branch October 7, 2025 00:02
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.

2 participants