* 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.
15 lines
363 B
Rust
15 lines
363 B
Rust
#![no_main]
|
|
|
|
use libfuzzer_sys::fuzz_target;
|
|
use wasmtime_fuzzing::{generators, oracles};
|
|
|
|
fuzz_target!(|data: (
|
|
generators::DifferentialConfig,
|
|
generators::DifferentialConfig,
|
|
generators::GeneratedModule,
|
|
)| {
|
|
let (lhs, rhs, mut wasm) = data;
|
|
wasm.module.ensure_termination(1000);
|
|
oracles::differential_execution(&wasm, &[lhs, rhs]);
|
|
});
|