From 29298b1f88f99e2c244c5ead946d4c8526456d85 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Wed, 9 Mar 2022 11:36:55 -0600 Subject: [PATCH] fuzz: Raise memory pages limit for spectest fuzzing (#3903) A recent fuzz failure showed that at least `call.wast` requires a memory larger than 10 pages, so increase the minimum number of pages that can be used for executing spec tests. --- crates/fuzzing/src/generators.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/fuzzing/src/generators.rs b/crates/fuzzing/src/generators.rs index 7f9bfbcbe3..04c6b5f754 100644 --- a/crates/fuzzing/src/generators.rs +++ b/crates/fuzzing/src/generators.rs @@ -355,9 +355,9 @@ impl Config { limits.memories = 1; limits.tables = 5; limits.table_elements = 1_000; - // Set a lower bound of 10 pages as the spec tests define memories with at + // Set a lower bound of as the spec tests define memories with at // least a few pages and some tests do memory grow operations. - limits.memory_pages = std::cmp::max(limits.memory_pages, 10); + limits.memory_pages = std::cmp::max(limits.memory_pages, 900); match &mut self.wasmtime.memory_config { MemoryConfig::Normal(config) => {