From c713be7d2b2514bb7e1ca3ec23e2b8bacf149899 Mon Sep 17 00:00:00 2001 From: Khalil Gibran Hassam <59589957+Forpee@users.noreply.github.com> Date: Mon, 9 Jun 2025 15:48:57 +0200 Subject: [PATCH] Revert "fix truncate_unuesed_mem dividing by 7 instead of 8" --- third-party/wasmi/crates/wasmi/src/tracer/mod.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/third-party/wasmi/crates/wasmi/src/tracer/mod.rs b/third-party/wasmi/crates/wasmi/src/tracer/mod.rs index 5eeb6eb..adf0af8 100644 --- a/third-party/wasmi/crates/wasmi/src/tracer/mod.rs +++ b/third-party/wasmi/crates/wasmi/src/tracer/mod.rs @@ -147,9 +147,7 @@ impl Tracer { .max(); // Truncate to the largest 8-byte chunk that can accommodate the used highest address. - let new_len = highest_address.map_or(0, |addr| (addr / 8) + 1); - // Add an extra slot because reads and writes also access the next chunk (Q) - let new_len = new_len + 1; + let new_len = highest_address.map_or(0, |addr| (addr / 7) + 1); self.IS_mem.truncate(new_len as usize); }