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.
This commit is contained in:
Alex Crichton
2022-03-09 11:36:55 -06:00
committed by GitHub
parent e73446790e
commit 29298b1f88

View File

@@ -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) => {