Update some fuzzing defaults and infrastructure #1793
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
wasm_smith::Config
to default-enable some stage4+ proposals:exceptions
,gc
,reference_types
,relaxed_simd
,simd
,tail_call
,threads
. These can still all be disabled via configuration and CLI flags.Arbitrary for Config
WasmFeatures
used for validating fuzz-generated modules now starts with a minimal baseline set of features to ensure that all proposals are disabled in the validator if the corresponding wasm-smith configuration flag is disabled.wasm-mutate
crate was updated to return errors instead of panicking for unsupported wasm proposals. All wasm proposals are now enabled when passing towasm-mutate
.The primary motivation for this commit was this last point where I'm seeing panics on OSS-Fuzz for Wasmtime using
wasm-mutate
as a mutation hook becausewasm-mutate
is panicking on some GC types. When fixing that I noticed other fuzz-related things I wanted to clean up while I was here.