Disable module linking in spectest fuzzing

Module linking implicitly enables multiple tables but that isn't
supported by the spec tests today.
This commit is contained in:
Alex Crichton
2021-03-31 07:19:51 -07:00
parent 27ce383306
commit 6748dfa43a

View File

@@ -438,6 +438,7 @@ pub fn spectest(fuzz_config: crate::generators::Config, test: crate::generators:
let mut config = fuzz_config.to_wasmtime();
config.wasm_reference_types(false);
config.wasm_bulk_memory(false);
config.wasm_module_linking(false);
let store = Store::new(&Engine::new(&config).unwrap());
if fuzz_config.consume_fuel {
store.add_fuel(u64::max_value()).unwrap();