* Update wasm-smith to 0.7.0 * Canonicalize NaN with wasm-smith for differential fuzzing This then also enables floating point executing in wasmi in addition to the spec interpreter. With NaN canonicalization at the wasm level this means that we should be producing deterministic results between Wasmtime and these alternative implementations.
13 lines
358 B
Rust
13 lines
358 B
Rust
#![no_main]
|
|
|
|
use libfuzzer_sys::fuzz_target;
|
|
use wasmtime::Strategy;
|
|
use wasmtime_fuzzing::{generators::GeneratedModule, oracles};
|
|
|
|
fuzz_target!(|module: GeneratedModule| {
|
|
let mut module = module;
|
|
module.module.ensure_termination(1000);
|
|
let wasm_bytes = module.module.to_bytes();
|
|
oracles::instantiate(&wasm_bytes, true, Strategy::Auto);
|
|
});
|