Skip to content

Commit fbf48fc

Browse files
authored
fuzzing: Don't try to run custom-page-sizes modules through our Wasmtime (#1644)
The Wasmtime version with support for that proposal is not released yet.
1 parent ffd630c commit fbf48fc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

fuzz/src/no_traps.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,8 @@ pub fn run(u: &mut Unstructured<'_>) -> Result<()> {
2626
})?;
2727
validate_module(&wasm_bytes);
2828

29-
// Tail calls aren't implemented in wasmtime, so don't try to run them
30-
// there.
31-
if config.tail_call_enabled {
29+
// Don't try to run these modules until we update to Wasmtime >=23.
30+
if config.custom_page_sizes_enabled {
3231
return Ok(());
3332
}
3433

@@ -38,6 +37,7 @@ pub fn run(u: &mut Unstructured<'_>) -> Result<()> {
3837
let mut eng_conf = wasmtime::Config::new();
3938
eng_conf.wasm_memory64(true);
4039
eng_conf.wasm_multi_memory(true);
40+
eng_conf.wasm_tail_call(true);
4141
eng_conf.consume_fuel(true);
4242
let engine = Engine::new(&eng_conf).unwrap();
4343
let module = match Module::from_binary(&engine, &wasm_bytes) {

0 commit comments

Comments
 (0)