We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d36244 commit b2227aeCopy full SHA for b2227ae
src/loader/mod.rs
@@ -955,7 +955,8 @@ pub fn load_wasm<'a, S: Settings<'a>>(
955
.ty
956
.maximum
957
.map(|v| v as u32)
958
- .unwrap_or(DEFAULT_MAX_TABLE_SIZE);
+ // ensure table max size is a least as big as the initial size
959
+ .unwrap_or(DEFAULT_MAX_TABLE_SIZE.max(table.ty.initial as u32));
960
961
// We include two extra words for the table size and maximum size
962
let segment = mem_allocator
0 commit comments