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
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