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:
@@ -355,9 +355,9 @@ impl Config {
|
|||||||
limits.memories = 1;
|
limits.memories = 1;
|
||||||
limits.tables = 5;
|
limits.tables = 5;
|
||||||
limits.table_elements = 1_000;
|
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.
|
// 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 {
|
match &mut self.wasmtime.memory_config {
|
||||||
MemoryConfig::Normal(config) => {
|
MemoryConfig::Normal(config) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user