Alex Crichton
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with
8 additions and
1 deletions
-
crates/fuzzing/src/generators.rs
-
crates/fuzzing/src/lib.rs
-
fuzz/fuzz_targets/differential_v8.rs
|
|
@ -213,6 +213,12 @@ impl wasm_smith::Config for WasmtimeDefaultConfig { |
|
|
|
4 |
|
|
|
} |
|
|
|
|
|
|
|
// Turn some wasm features default-on for those that have a finished
|
|
|
|
// implementation in Wasmtime.
|
|
|
|
fn simd_enabled(&self) -> bool { |
|
|
|
true |
|
|
|
} |
|
|
|
|
|
|
|
fn reference_types_enabled(&self) -> bool { |
|
|
|
true |
|
|
|
} |
|
|
|
|
|
@ -40,6 +40,7 @@ pub fn fuzz_default_config(strategy: wasmtime::Strategy) -> anyhow::Result<wasmt |
|
|
|
.wasm_reference_types(true) |
|
|
|
.wasm_module_linking(true) |
|
|
|
.wasm_multi_memory(true) |
|
|
|
.wasm_simd(true) |
|
|
|
.wasm_memory64(true) |
|
|
|
.strategy(strategy)?; |
|
|
|
Ok(config) |
|
|
|
|
|
@ -5,7 +5,7 @@ use wasmtime_fuzzing::{generators, oracles}; |
|
|
|
|
|
|
|
fuzz_target!(|data: ( |
|
|
|
generators::Config, |
|
|
|
wasm_smith::ConfiguredModule<oracles::SingleFunctionModuleConfig<false, true>> |
|
|
|
wasm_smith::ConfiguredModule<oracles::SingleFunctionModuleConfig<true, true>> |
|
|
|
)| { |
|
|
|
let (config, mut wasm) = data; |
|
|
|
wasm.module.ensure_termination(1000); |
|
|
|