This commit uses the new `MaybeInvalidModule` type in `wasm-smith` to try to explore more points in the fuzz target space in the `instantiate-maybe-invalid` fuzz target. The goal here is to use the raw fuzz input as the body of a function to stress the validator/decoder a bit more, and try to get inputs we might not otherwise generate.
16 lines
373 B
Rust
16 lines
373 B
Rust
#![no_main]
|
|
|
|
use libfuzzer_sys::fuzz_target;
|
|
use std::time::Duration;
|
|
use wasm_smith::Module;
|
|
use wasmtime::Strategy;
|
|
use wasmtime_fuzzing::oracles;
|
|
|
|
fuzz_target!(|module: MaybeInvalidModule| {
|
|
oracles::instantiate_with_config(
|
|
&module.to_bytes(),
|
|
wasmtime_fuzzing::fuzz_default_config(Strategy::Auto),
|
|
Some(Duration::from_secs(20)),
|
|
);
|
|
});
|