Skip to content

Fuzzing: Allow running wasm exports in different orders in fuzz_shell.js#7204

Merged
kripken merged 7 commits into
WebAssembly:mainfrom
kripken:cf.ordering
Jan 10, 2025
Merged

Fuzzing: Allow running wasm exports in different orders in fuzz_shell.js#7204
kripken merged 7 commits into
WebAssembly:mainfrom
kripken:cf.ordering

Conversation

@kripken

@kripken kripken commented Jan 9, 2025

Copy link
Copy Markdown
Member

Normally fuzz_shell.js runs the exports in the natural order, when callExports
is called. There is benefit to running them in different orders, just to get more
variety at runtime. To allow that, it now receives a random seed that, if provided,
it uses to determine the order at runtime.

This is primarily useful for ClusterFuzz, which adds more executions of
callExports. We now add such a seed to those.

@kripken kripken requested a review from tlively January 9, 2025 22:23
Comment thread test/lit/node/fuzz_shell_orders.wast Outdated
Co-authored-by: Thomas Lively <tlively123@gmail.com>
@kripken

kripken commented Jan 10, 2025

Copy link
Copy Markdown
Member Author

(waiting on #7205 to land as that bug may have been detected by this addition)

@kripken kripken merged commit 444682c into WebAssembly:main Jan 10, 2025
@kripken kripken deleted the cf.ordering branch January 10, 2025 17:01
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