使用AddressSanitzier后0xbebebebe值是什么意思

adtxl
2022-11-09 / 0 评论 / 383 阅读 / 正在检测是否收录...

Q:打开asan后,很多指针的值为0xbebebebe,有什么含义吗?

A:在默认情况下,asan会向新分配的内存里写入0xbe。所以对于一些未赋值的变量,值都是0xbebebebe。对于64位,可能是0xbebebebebebebebe。

image.png

参考:
1.https://github.com/google/sanitizers/wiki/AddressSanitizer

0

评论 (0)

取消