From 878840a0815439d9f9bf2d456f2f293802380f00 Mon Sep 17 00:00:00 2001 From: TermiNexus Date: Tue, 25 Aug 2026 15:51:24 +0800 Subject: [PATCH] =?UTF-8?q?feat(memhub):=20[DET]=20=E8=B6=8A=E7=95=8C?= =?UTF-8?q?=E5=86=99=E8=BF=BD=E5=8A=A0=E6=89=93=E5=8D=B0=E8=B6=8A=E7=95=8C?= =?UTF-8?q?=E5=8C=BA24=E5=AD=97=E8=8A=82=20-=20=E5=88=A4=E6=96=AD=E5=86=99?= =?UTF-8?q?=E5=85=A5=E8=80=85=E5=86=99=E5=A4=9A=E9=95=BF/=E6=96=B9?= =?UTF-8?q?=E5=90=91=EF=BC=880x00=3D=E5=86=99=E7=A9=BF=200xCD=3D=E6=9C=AA?= =?UTF-8?q?=E5=86=99=20=E5=85=B6=E5=AE=83=3D=E5=86=99=E5=85=A5=E5=80=BC?= =?UTF-8?q?=EF=BC=89=EF=BC=8C=E5=AE=9A=E4=BD=8D=20size=3D7=20=E5=9D=97=20{?= =?UTF-8?q?10,1}=20=E8=B6=8A=E7=95=8C=E5=86=99=E6=BA=90=E5=A4=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- includes/memhub.vp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/includes/memhub.vp b/includes/memhub.vp index a3b9dcd..2d94ac0 100644 --- a/includes/memhub.vp +++ b/includes/memhub.vp @@ -890,6 +890,14 @@ class MemBuddy(MemManager): bv3: t.CUInt8T = (t.CUInt8T | t.CPtr)(t.CVoid(p + t.CUInt64T(bi3), t.CPtr))[0] stdio.printf("%02X ", t.CUInt32T(bv3)) bi3 += 1 + # 越界区(ptr+size 起 24 字节):0x00=被写穿 0xCD=未写 其它=写入值, + # 用于判断写入者写多长、往哪个方向 + stdio.printf("越界区: ") + bj3: t.CInt = 0 + while bj3 < 24: + 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 stdio.printf("\n") stdlib.exit(1) i += 1