From 91482f39d0ab29cab4939e5484701877693ba599 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Tue, 5 Oct 2021 09:12:11 -0500 Subject: [PATCH] Disable module linking in compilation fuzzer (#3416) Module linking is otherwise covered by other fuzzers and by enabling module linking it rejects more modules than necessary due to restrictions on import strings. --- crates/fuzzing/src/oracles.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/fuzzing/src/oracles.rs b/crates/fuzzing/src/oracles.rs index ce41fd1410..bf7af02631 100644 --- a/crates/fuzzing/src/oracles.rs +++ b/crates/fuzzing/src/oracles.rs @@ -225,7 +225,9 @@ fn instantiate_with_dummy(store: &mut Store, module: &Module) -> Op pub fn compile(wasm: &[u8], strategy: Strategy) { crate::init_fuzzing(); - let engine = Engine::new(&crate::fuzz_default_config(strategy).unwrap()).unwrap(); + let mut config = crate::fuzz_default_config(strategy).unwrap(); + config.wasm_module_linking(false); + let engine = Engine::new(&config).unwrap(); log_wasm(wasm); let _ = Module::new(&engine, wasm); }