diff --git a/includes/memhub.vp b/includes/memhub.vp index 2d94ac0..9204c39 100644 --- a/includes/memhub.vp +++ b/includes/memhub.vp @@ -898,6 +898,16 @@ class MemBuddy(MemManager): bvj: t.CUInt8T = (t.CUInt8T | t.CPtr)(t.CVoid(p + s + t.CUInt64T(bj3), t.CPtr))[0] stdio.printf("%02X ", t.CUInt32T(bvj)) bj3 += 1 + # 记录表上下文:该条前 3 + 后 3 的 {ptr,size},推断越界块分配阶段 + stdio.printf("\n记录上下文: ") + ci2: t.CInt = -3 + while ci2 <= 3: + idx2: t.CSizeT = t.CSizeT(t.CInt(i) + ci2) + if idx2 < self._det_count: + cip: t.CUInt64T = self._det_records[idx2 * 2] + cis: t.CUInt64T = self._det_records[idx2 * 2 + 1] + stdio.printf("[%d]ptr=%llu sz=%llu ", ci2, cip, cis & (free_flag - 1)) + ci2 += 1 stdio.printf("\n") stdlib.exit(1) i += 1