Address|Address Sanitizer
【Address|Address Sanitizer】1.only one runtime bug-finding tool can use on iOS
2.what can do:use after free, user after return, heap/stack buffer overflow,global variable overflow and overflows in C++ containers
3.how to use:
Xcode: edit scheme -> select task -> diagnostics -> check Enable Address Sanitizer checkbox
commandLine: xcodebuild -shceme "target" test -enableAddressSanitizer YES
4.原理 在需要检测的内存区域单元(可单独访问的内存区域)前后增加poisoned memory,缺点是会带来x2~x5的性能消耗
read more:
mikes:Address Sanitizer
WWDC Video for Address Sanitizer
推荐阅读
- 宽容谁
- 我要做大厨
- 增长黑客的海盗法则
- 画画吗()
- 2019-02-13——今天谈梦想()
- 远去的风筝
- 三十年后的广场舞大爷
- 叙述作文
- 20190302|20190302 复盘翻盘
- 学无止境,人生还很长