From 66c3fc2ce6f3d5c728cb9e81e223ca69596b9606 Mon Sep 17 00:00:00 2001 From: pjh456 <147148383@qq.com> Date: Sat, 19 Sep 2026 20:00:46 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=89=A7=E8=A1=8C=E7=8A=B6=E6=80=81?= =?UTF-8?q?=E9=87=8D=E7=BD=AE=E8=A1=A5=20native=20pack=20=E5=AE=9E?= =?UTF-8?q?=E5=8F=82=E5=8C=BA=E4=B8=8A=E7=95=8C=E5=BD=92=E4=BD=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crates/oxide_vm/src/vm_support.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crates/oxide_vm/src/vm_support.rs b/crates/oxide_vm/src/vm_support.rs index e8825cd8..f7f42bc9 100644 --- a/crates/oxide_vm/src/vm_support.rs +++ b/crates/oxide_vm/src/vm_support.rs @@ -511,6 +511,9 @@ impl Vm { self.spill_stack.clear(); self.native_overflow_base = 0; self.native_overflow_count = 0; + // native pack 实参区上界与溢出描述符同构:仅一次 native 调用期间有效, + // 跨 run/reset 残留会在非 pack 上下文的恢复边界误跳镜像重载。 + self.native_pack_end = 0; self.cell_stack.clear(); self.try_stack.clear(); self.exception_value = None;