From ff1ae6e10c773661749f486f2f9b70bb9cff9f77 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Fri, 16 Jul 2021 14:37:27 -0500 Subject: [PATCH] Flag another error as ok to hit when fuzzing (#3092) We've got a lot of fuzz failures right now of modules instantiating memories of 65536 pages, which we specifically disallow since the representation of limits within Wasmtime don't support full 4GB memories. This is ok, however, and it's not a fuzz failure that we're interested in, so this commit allows strings of that error to pass through the fuzzer. --- crates/fuzzing/src/oracles.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crates/fuzzing/src/oracles.rs b/crates/fuzzing/src/oracles.rs index d9ab06bfd5..f2c674edff 100644 --- a/crates/fuzzing/src/oracles.rs +++ b/crates/fuzzing/src/oracles.rs @@ -172,6 +172,9 @@ pub fn instantiate_with_config( // every single module under the sun due to using name-based resolution // rather than positional-based resolution || string.contains("incompatible import type") + // If we ran out of resources instantiating this wasm module that's + // ok, no need to consider that a fatal error. + || string.contains("Insufficient resources") { return; }