================================================================= ==30956==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x619000000980 at pc 0x0001035e6804 bp 0x00016d00dda0 sp 0x00016d00d570 READ of size 1004 at 0x619000000980 thread T0 #0 0x0001035e6800 in strlen+0x22c (libclang_rt.asan_osx_dynamic.dylib:arm64e+0x16800) #1 0x000102e089cc in check_name util.c:139 #2 0x000102e089cc in canonicalise util.c:251 #3 0x000102ea75e4 in add_update_server domain-match.c:677 #4 0x000102e15c68 in one_opt option.c:3142 #5 0x000102e0ec08 in read_file option.c:5599 #6 0x000102e0f9c4 in one_file option.c:5705 #7 0x000102e10424 in read_opts option.c:6090 #8 0x000102e3c01c in main dnsmasq.c:115 #9 0x0001978a4d78 in start+0x19f8 (dyld:arm64e+0x31d78) 0x619000000980 is located 0 bytes after 1024-byte region [0x619000000580,0x619000000980) allocated by thread T0 here: #0 0x000103611460 in realloc+0x80 (libclang_rt.asan_osx_dynamic.dylib:arm64e+0x41460) #1 0x000102e0b920 in whine_realloc_real util.c:967 #2 0x000102e0b920 in get_line_alloc util.c:1054 #3 0x000102e0e844 in read_file option.c:5487 #4 0x000102e0f9c4 in one_file option.c:5705 #5 0x000102e10424 in read_opts option.c:6090 #6 0x000102e3c01c in main dnsmasq.c:115 #7 0x0001978a4d78 in start+0x19f8 (dyld:arm64e+0x31d78) SUMMARY: AddressSanitizer: heap-buffer-overflow util.c:139 in check_name Shadow bytes around the buggy address: 0x619000000700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x619000000780: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x619000000800: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x619000000880: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x619000000900: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 =>0x619000000980:[fa]fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x619000000a00: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x619000000a80: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x619000000b00: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x619000000b80: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x619000000c00: 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 ==30956==ABORTING