fuzz: Update pooling allocator limits on tables (#3880)

Another instance similar to #3879 where when doing differential tests
the pooling allocator configuration needs to be updated to allow for a
possible table.
This commit is contained in:
Alex Crichton
2022-03-03 11:24:38 -06:00
committed by GitHub
parent d3fd1ebe5f
commit 8861d0cc42

View File

@@ -304,6 +304,8 @@ impl Config {
limits.memories = 1; limits.memories = 1;
limits.memory_pages = 1; limits.memory_pages = 1;
limits.tables = 1;
match &mut self.wasmtime.memory_config { match &mut self.wasmtime.memory_config {
MemoryConfig::Normal(config) => { MemoryConfig::Normal(config) => {
config.static_memory_maximum_size = Some(limits.memory_pages * 0x10000); config.static_memory_maximum_size = Some(limits.memory_pages * 0x10000);