feat(memhub): [DET] 越界写追加打印越界区24字节 - 判断写入者写多长/方向(0x00=写穿 0xCD=未写 其它=写入值),定位 size=7 块 {10,1} 越界写源头
This commit is contained in:
1 parent
e48f2104ff
commit
878840a081
1 file changed
+8
@@ -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
|
||||
|
||||
Reference in new issue
Block a user