From df0cd2023bb20764851938a1fcbd4ac1c785a238 Mon Sep 17 00:00:00 2001 From: gtrepta <50716988+gtrepta@users.noreply.github.com> Date: Thu, 21 Nov 2024 14:49:59 -0600 Subject: [PATCH] Use the config in the wasmtime oracle (#1314) Use the config when creating the wasmtime oracle engine. --- crates/fuzz/src/oracle/wasmtime.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/fuzz/src/oracle/wasmtime.rs b/crates/fuzz/src/oracle/wasmtime.rs index ed16450572..55deffdfdf 100644 --- a/crates/fuzz/src/oracle/wasmtime.rs +++ b/crates/fuzz/src/oracle/wasmtime.rs @@ -26,7 +26,10 @@ impl DifferentialOracleMeta for WasmtimeOracle { // more interested what kind of error occurred and now how an error // occurred. config.wasm_backtrace(false); - let engine = Engine::default(); + // We're disabling POSIX signals on errors in the engine because + // some fuzzers will catch them and report them as false positives. + config.signals_based_traps(false); + let engine = Engine::new(&config).unwrap(); let linker = Linker::new(&engine); let limiter = StoreLimitsBuilder::new() .memory_size(1000 * 0x10000)