address sanitizer

  • -fsanitize=address:Enable AddressSanitizer. The option cannot be combined with -fsanitize=thread or -fsanitize=hwaddress.
  • -fsanitize=hwaddress:Enable Hardware-assisted AddressSanitizer. The option cannot be combined with -fsanitize=thread or -fsanitize=address, and is currently only available on AArch64.
  • -fsanitize=thread:Enable ThreadSanitizer. The option cannot be combined with -fsanitize=address, -fsanitize=leak.
  • -fsanitize=leak:Enable LeakSanitizer. The option cannot be combined with -fsanitize=thread. 
原文地址:https://www.cnblogs.com/zengjianrong/p/14844335.html