================================================================= ==73418==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x605000000721 at pc 0x0001000a157c bp 0x00016fd5dad0 sp 0x00016fd5dac8 WRITE of size 1 at 0x605000000721 thread T0 SCARINESS: 31 (1-byte-write-heap-buffer-overflow) ==73418==WARNING: failed to spawn external symbolizer (errno: 9) ==73418==WARNING: failed to spawn external symbolizer (errno: 9) ==73418==WARNING: failed to spawn external symbolizer (errno: 9) ==73418==WARNING: failed to spawn external symbolizer (errno: 9) ==73418==WARNING: failed to spawn external symbolizer (errno: 9) ==73418==WARNING: Failed to use and restart external symbolizer! #0 0x0001000a1578 in handle_array rcfg.c:122 #1 0x0001000a0d70 in dispatch rcfg.c:210 #2 0x0001000a0a4c in rcfg_decode rcfg.c:247 #3 0x0001000a2418 in main rcfg_cli.c:59 #4 0x00018d1844e0 in start (in dyld) + 6988 0x605000000721 is located 0 bytes after 1-byte region [0x605000000720,0x605000000721) allocated by thread T0 here: #0 0x000100839164 in wrap_malloc (in libclang_rt.asan_osx_dynamic.dylib) + 120 #1 0x0001000a14dc in handle_array rcfg.c:115 #2 0x0001000a0d70 in dispatch rcfg.c:210 #3 0x0001000a0a4c in rcfg_decode rcfg.c:247 #4 0x0001000a2418 in main rcfg_cli.c:59 #5 0x00018d1844e0 in start (in dyld) + 6988 SUMMARY: AddressSanitizer: heap-buffer-overflow (targets/samples/sample-c/build-asan/rcfg:arm64+0x100001578) in handle_array+0x130 Shadow bytes around the buggy address: 0x605000000480: fa fa fa fa fd fa fa fa fa fa fa fa fa fa fd fa 0x605000000500: fa fa fa fa fa fa fa fa fd fa fa fa fa fa fa fa 0x605000000580: fa fa 00 07 fa fa fa fa fa fa fa fa 00 00 fa fa 0x605000000600: fa fa fa fa fa fa 00 06 fa fa fa fa fa fa fa fa 0x605000000680: 00 04 fa fa fa fa fa fa fa fa 00 07 fa fa fa fa =>0x605000000700: fa fa fa fa[01]fa fa fa fa fa fa fa fa fa fa fa 0x605000000780: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x605000000800: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x605000000880: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x605000000900: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x605000000980: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa Shadow byte legend (one shadow byte represents 8 application bytes): Addressable: 00 Partially addressable: 01 02 03 04 05 06 07 Heap left redzone: fa Freed heap region: fd Stack left redzone: f1 Stack mid redzone: f2 Stack right redzone: f3 Stack after return: f5 Stack use after scope: f8 Global redzone: f9 Global init order: f6 Poisoned by user: f7 Container overflow: fc Array cookie: ac Intra object redzone: bb ASan internal: fe Left alloca redzone: ca Right alloca redzone: cb ==73418==ABORTING CRASH_RATE: 5/5 [run-sanitizer-multi] REVERIFY: 5/5 - reproduced in 5/5 reverification runs