AddressSanitizer is a fast memory error detector. It consists of a compiler instrumentation module and a run-time library. The tool can detect the following types of bugs:xcode
Out-of-bounds accesses to heap, stack and globals
Use-after-free
Use-after-return (to some extent)
Double-free, invalid free
Memory leaks (experimental)3d
總結來講:**用來解決內存問題的**。 當發生Crash時,打印這個Crash內存的使用記錄。經過這個使用記錄來調試Bug。