Skip to content

Commit

Permalink
Use a much lower memory page limit for pooling allocator fuzzing. (#3795
Browse files Browse the repository at this point in the history
)

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.
  • Loading branch information
peterhuene authored Feb 14, 2022
1 parent db2fec4 commit da53925
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/fuzzing/src/generators.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)?,
Expand Down

0 comments on commit da53925

Please sign in to comment.