Use wasm-smith to canonicalize NaN in differential fuzzing (#3195)
* 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.
This commit is contained in:
@@ -6,7 +6,7 @@ use wasmtime_fuzzing::{generators::GeneratedModule, oracles};
|
||||
|
||||
fuzz_target!(|module: GeneratedModule| {
|
||||
let mut module = module;
|
||||
module.ensure_termination(1000);
|
||||
let wasm_bytes = module.to_bytes();
|
||||
module.module.ensure_termination(1000);
|
||||
let wasm_bytes = module.module.to_bytes();
|
||||
oracles::instantiate(&wasm_bytes, true, Strategy::Auto);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user