Address Sanitizer 用法

gcc -fsanitize=address -g main.cpp

然后直接运行即可:

./a.out

 

参考:

https://www.jianshu.com/p/3a2df9b7c353

https://wizardforcel.gitbooks.io/100-gcc-tips/content/address-sanitizer.html

posted @ 2020-12-13 01:12  JayYin  阅读(218)  评论(0编辑  收藏  举报