diff --git a/crates/adapter/src/lib.rs b/crates/adapter/src/lib.rs index 0dbba8be..4da15817 100644 --- a/crates/adapter/src/lib.rs +++ b/crates/adapter/src/lib.rs @@ -355,7 +355,7 @@ impl BumpAlloc { unreachable!("invalid alignment"); } let align_offset = self.base.align_offset(align); - if align_offset >= self.len { + if align_offset > self.len { unreachable!("failed to allocate") } self.len -= align_offset; diff --git a/lib/data/viceroy-component-adapter.wasm b/lib/data/viceroy-component-adapter.wasm index 23c5936c..57cfa866 100755 Binary files a/lib/data/viceroy-component-adapter.wasm and b/lib/data/viceroy-component-adapter.wasm differ