Merge pull request #3381 from alexcrichton/more-disable-simd

Disable simd in the instantiate-swarm fuzz target
This commit is contained in:
Nick Fitzgerald
2021-09-22 10:07:46 -07:00
committed by GitHub

View File

@@ -25,7 +25,6 @@ fn run(data: &[u8]) -> Result<()> {
// that aren't otherwise enabled by default. We want to test all of these in
// Wasmtime.
let mut config: SwarmConfig = u.arbitrary()?;
config.simd_enabled = u.arbitrary()?;
config.module_linking_enabled = u.arbitrary()?;
config.memory64_enabled = u.arbitrary()?;
// Don't generate modules that allocate more than 6GB
@@ -35,7 +34,6 @@ fn run(data: &[u8]) -> Result<()> {
let mut cfg = wasmtime_fuzzing::fuzz_default_config(Strategy::Auto).unwrap();
cfg.wasm_multi_memory(config.max_memories > 1);
cfg.wasm_module_linking(config.module_linking_enabled);
cfg.wasm_simd(config.simd_enabled);
cfg.wasm_memory64(config.memory64_enabled);
oracles::instantiate_with_config(&module.to_bytes(), true, cfg, timeout);