Skip to content

Commit

Permalink
Use the config in the wasmtime oracle (#1314)
Browse files Browse the repository at this point in the history
Use the config when creating the wasmtime oracle engine.
  • Loading branch information
gtrepta authored Nov 21, 2024
1 parent 8381211 commit df0cd20
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion crates/fuzz/src/oracle/wasmtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit df0cd20

Please sign in to comment.