From da539255a54b5c60492520ba81469ea2a6e9400a Mon Sep 17 00:00:00 2001 From: Peter Huene Date: Mon, 14 Feb 2022 08:18:29 -0800 Subject: [PATCH] Use a much lower memory page limit for pooling allocator fuzzing. (#3795) This commit makes it such that the pooling allocator will be configured with a much lower upper bound for memory pages, which will greatly reduce the likelihood that the fuzzer memory limits will be hit from having too many memories from too many instances committed. --- crates/fuzzing/src/generators.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/fuzzing/src/generators.rs b/crates/fuzzing/src/generators.rs index d92f10ad33..7988cacea6 100644 --- a/crates/fuzzing/src/generators.rs +++ b/crates/fuzzing/src/generators.rs @@ -105,7 +105,7 @@ impl<'a> Arbitrary<'a> for ModuleLimits { const MAX_MEMORIES: u32 = 10; const MAX_GLOBALS: u32 = 1000; const MAX_ELEMENTS: u32 = 1000; - const MAX_MEMORY_PAGES: u64 = 0x10000; + const MAX_MEMORY_PAGES: u64 = 160; // 10 MiB Ok(Self { imported_functions: u.int_in_range(0..=MAX_IMPORTS)?,