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:
@@ -108,7 +108,7 @@ impl<'a> Arbitrary<'a> for ApiCalls {
|
||||
choices.push(|input, scope| {
|
||||
let id = scope.next_id();
|
||||
let mut wasm = super::GeneratedModule::arbitrary(input)?;
|
||||
wasm.ensure_termination(1000);
|
||||
wasm.module.ensure_termination(1000);
|
||||
scope.modules.insert(id);
|
||||
Ok(ModuleNew { id, wasm })
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user