[root@lzw test]# gcc -g -fsanitize=address test_address_sanitizer.c -o t
运行效果
[root@lzw test]# ./t
=================================================================
==25973==ERROR: AddressSanitizer: heap-use-after-free on address 0x607000000025 at pc 0x000000401204 bp 0x7ffd14d09d20 sp 0x7ffd14d09d10
READ of size 1 at 0x607000000025 thread T0
#0 0x401203 in test /data/lzw/game/test/test_address_sanitize