================================================================= ==5187==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x00016131fb10 at pc 0x000101e74b58 bp 0x00016f45c170 sp 0x00016f45c168 READ of size 1 at 0x00016131fb10 thread T0 #0 0x101e74b57 in $S6Kronos15InternetAddressO7storageACSgSPySo09sockaddr_D0VG_tcfC (/private/var/containers/Bundle/Application/F2850C00-9448-4D65-BB5A-2054D5522F9E/test-kronos.app/Frameworks/Kronos.framework/Kronos:arm64+0x18b57) #1 0x101e6c563 in $S6Kronos11DNSResolverC7resolve4host7timeout10completionySS_SdySayAA15InternetAddressOGctFZySo9CFHostRefa_So0I8InfoTypeVSPySo13CFStreamErroraGSgSvSgtcfU_AISg10Foundation4DataVXEfU0_ATSPySo16sockaddr_storageVGXEfU_ (/private/var/containers/Bundle/Application/F2850C00-9448-4D65-BB5A-2054D5522F9E/test-kronos.app/Frameworks/Kronos.framework/Kronos:arm64+0x10563) #2 0x101e6cc7b in $SSPySo16sockaddr_storageVG6Kronos15InternetAddressOSgs5Error_pIgydzo_AcGsAH_pIegyrzo_TR (/private/var/containers/Bundle/Application/F2850C00-9448-4D65-BB5A-2054D5522F9E/test-kronos.app/Frameworks/Kronos.framework/Kronos:arm64+0x10c7b) #3 0x101e6f8d3 in $SSPySo16sockaddr_storageVG6Kronos15InternetAddressOSgs5Error_pIgydzo_AcGsAH_pIegyrzo_TRTA (/private/var/containers/Bundle/Application/F2850C00-9448-4D65-BB5A-2054D5522F9E/test-kronos.app/Frameworks/Kronos.framework/Kronos:arm64+0x138d3) #4 0x102703357 in $S10Foundation4DataV15withUnsafeBytesyxxSPyq_GKXEKr0_lFxSWKXEfU_TA (/private/var/containers/Bundle/Application/F2850C00-9448-4D65-BB5A-2054D5522F9E/test-kronos.app/Frameworks/libswiftFoundation.dylib:arm64+0xe7357) #5 0x1026334e3 in $S10Foundation12_DataStorageC15withUnsafeBytes2in5applyxSnySiG_xSWKXEtKlF (/private/var/containers/Bundle/Application/F2850C00-9448-4D65-BB5A-2054D5522F9E/test-kronos.app/Frameworks/libswiftFoundation.dylib:arm64+0x174e3) #6 0x102638ecb in $S10Foundation4DataV15withUnsafeBytesyxxSPyq_GKXEKr0_lF (/private/var/containers/Bundle/Application/F2850C00-9448-4D65-BB5A-2054D5522F9E/test-kronos.app/Frameworks/libswiftFoundation.dylib:arm64+0x1cecb) #7 0x101e6bcbb in $S6Kronos11DNSResolverC7resolve4host7timeout10completionySS_SdySayAA15InternetAddressOGctFZySo9CFHostRefa_So0I8InfoTypeVSPySo13CFStreamErroraGSgSvSgtcfU_AISg10Foundation4DataVXEfU0_ (/private/var/containers/Bundle/Application/F2850C00-9448-4D65-BB5A-2054D5522F9E/test-kronos.app/Frameworks/Kronos.framework/Kronos:arm64+0xfcbb) #8 0x101e6d5cb in $S10Foundation4DataV6Kronos15InternetAddressOSgs5Error_pIggdzo_AcGsAH_pIegnrzo_TR (/private/var/containers/Bundle/Application/F2850C00-9448-4D65-BB5A-2054D5522F9E/test-kronos.app/Frameworks/Kronos.framework/Kronos:arm64+0x115cb) #9 0x101e6f767 in $S10Foundation4DataV6Kronos15InternetAddressOSgs5Error_pIggdzo_AcGsAH_pIegnrzo_TRTA (/private/var/containers/Bundle/Application/F2850C00-9448-4D65-BB5A-2054D5522F9E/test-kronos.app/Frameworks/Kronos.framework/Kronos:arm64+0x13767) #10 0x10206d2d7 in $SSTsE10compactMapySayqd__Gqd__Sg7ElementQzKXEKlF (/private/var/containers/Bundle/Application/F2850C00-9448-4D65-BB5A-2054D5522F9E/test-kronos.app/Frameworks/libswiftCore.dylib:arm64+0x1652d7) #11 0x101e6b13b in $S6Kronos11DNSResolverC7resolve4host7timeout10completionySS_SdySayAA15InternetAddressOGctFZySo9CFHostRefa_So0I8InfoTypeVSPySo13CFStreamErroraGSgSvSgtcfU_ (/private/var/containers/Bundle/Application/F2850C00-9448-4D65-BB5A-2054D5522F9E/test-kronos.app/Frameworks/Kronos.framework/Kronos:arm64+0xf13b) #12 0x101e6dda3 in $S6Kronos11DNSResolverC7resolve4host7timeout10completionySS_SdySayAA15InternetAddressOGctFZySo9CFHostRefa_So0I8InfoTypeVSPySo13CFStreamErroraGSgSvSgtcfU_To (/private/var/containers/Bundle/Application/F2850C00-9448-4D65-BB5A-2054D5522F9E/test-kronos.app/Frameworks/Kronos.framework/Kronos:arm64+0x11da3) #13 0x225f3546f in (/System/Library/Frameworks/CFNetwork.framework/CFNetwork:arm64+0x22b46f) #14 0x225f34deb in (/System/Library/Frameworks/CFNetwork.framework/CFNetwork:arm64+0x22adeb) #15 0x225f3456b in (/System/Library/Frameworks/CFNetwork.framework/CFNetwork:arm64+0x22a56b) #16 0x2256f01cb in (/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation:arm64+0xac1cb) #17 0x2256f014b in (/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation:arm64+0xac14b) #18 0x2256efa2f in (/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation:arm64+0xaba2f) #19 0x2256ea8fb in (/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation:arm64+0xa68fb) #20 0x2256ea1cb in CFRunLoopRunSpecific (/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation:arm64+0xa61cb) #21 0x227961583 in GSEventRunModal (/System/Library/PrivateFrameworks/GraphicsServices.framework/GraphicsServices:arm64+0xb583) #22 0x25292d053 in UIApplicationMain (/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore:arm64+0x8e8053) #23 0x1009a843b in main (/var/containers/Bundle/Application/F2850C00-9448-4D65-BB5A-2054D5522F9E/test-kronos.app/test-kronos:arm64+0x10000843b) #24 0x2251aabb3 in (/usr/lib/system/libdyld.dylib:arm64+0xbb3) 0x00016131fb10 is located 0 bytes to the right of 80-byte region [0x00016131fac0,0x00016131fb10) allocated by thread T4 here: #0 0x100d217eb in __sanitizer_mz_malloc (/var/containers/Bundle/Application/F2850C00-9448-4D65-BB5A-2054D5522F9E/test-kronos.app/Frameworks/libclang_rt.asan_ios_dynamic.dylib:arm64+0x4d7eb) #1 0x22533d99f in malloc_zone_malloc (/usr/lib/system/libsystem_malloc.dylib:arm64+0x1099f) #2 0x2256f113b in _CFRuntimeCreateInstance (/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation:arm64+0xad13b) #3 0x2256b326b in (/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation:arm64+0x6f26b) #4 0x225e8fb6b in (/System/Library/Frameworks/CFNetwork.framework/CFNetwork:arm64+0x185b6b) #5 0x2252a4ce3 in (/usr/lib/system/libsystem_info.dylib:arm64+0x11ce3) #6 0x2252b6927 in si_async_handle_reply (/usr/lib/system/libsystem_info.dylib:arm64+0x23927) #7 0x2252a4e77 in getaddrinfo_async_handle_reply (/usr/lib/system/libsystem_info.dylib:arm64+0x11e77) #8 0x225f34617 in (/System/Library/Frameworks/CFNetwork.framework/CFNetwork:arm64+0x22a617) #9 0x225f3472b in (/System/Library/Frameworks/CFNetwork.framework/CFNetwork:arm64+0x22a72b) #10 0x100d201b3 in __wrap_dispatch_source_set_cancel_handler_block_invoke (/var/containers/Bundle/Application/F2850C00-9448-4D65-BB5A-2054D5522F9E/test-kronos.app/Frameworks/libclang_rt.asan_ios_dynamic.dylib:arm64+0x4c1b3) #11 0x102a07823 in _dispatch_call_block_and_release (/usr/lib/system/introspection/libdispatch.dylib:arm64+0x3823) #12 0x102a08dc7 in _dispatch_client_callout (/usr/lib/system/introspection/libdispatch.dylib:arm64+0x4dc7) #13 0x102a0c1c3 in _dispatch_continuation_pop (/usr/lib/system/introspection/libdispatch.dylib:arm64+0x81c3) #14 0x102a1e9ef in _dispatch_source_invoke (/usr/lib/system/introspection/libdispatch.dylib:arm64+0x1a9ef) #15 0x102a1bbfb in _dispatch_workloop_worker_thread (/usr/lib/system/introspection/libdispatch.dylib:arm64+0x17bfb) #16 0x22537c0db in _pthread_wqthread (/usr/lib/system/libsystem_pthread.dylib:arm64+0xc0db) #17 0x22537eceb in start_wqthread (/usr/lib/system/libsystem_pthread.dylib:arm64+0xeceb) Thread T4 created by T3 here: Thread T3 created by T0 here: #0 0x100d19afb in wrap_pthread_create (/var/containers/Bundle/Application/F2850C00-9448-4D65-BB5A-2054D5522F9E/test-kronos.app/Frameworks/libclang_rt.asan_ios_dynamic.dylib:arm64+0x45afb) #1 0x2260dcc07 in (/System/Library/Frameworks/Foundation.framework/Foundation:arm64+0x5c07) #2 0x252a1a88f in (/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore:arm64+0x9d588f) #3 0x252a19807 in (/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore:arm64+0x9d4807) #4 0x25292d40f in (/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore:arm64+0x8e840f) #5 0x25292d01f in UIApplicationMain (/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore:arm64+0x8e801f) #6 0x1009a843b in main (/var/containers/Bundle/Application/F2850C00-9448-4D65-BB5A-2054D5522F9E/test-kronos.app/test-kronos:arm64+0x10000843b) #7 0x2251aabb3 in (/usr/lib/system/libdyld.dylib:arm64+0xbb3) SUMMARY: AddressSanitizer: heap-buffer-overflow (/private/var/containers/Bundle/Application/F2850C00-9448-4D65-BB5A-2054D5522F9E/test-kronos.app/Frameworks/Kronos.framework/Kronos:arm64+0x18b57) in $S6Kronos15InternetAddressO7storageACSgSPySo09sockaddr_D0VG_tcfC Shadow bytes around the buggy address: 0x00012f0a3f10: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x00012f0a3f20: 00 00 00 00 00 00 00 00 00 00 fa fa fa fa 00 00 0x00012f0a3f30: 00 00 00 00 00 00 00 00 fa fa fa fa 00 00 00 00 0x00012f0a3f40: 00 00 00 00 00 00 fa fa fa fa 00 00 00 00 00 00 0x00012f0a3f50: 00 00 00 00 fa fa fa fa 00 00 00 00 00 00 00 00 =>0x00012f0a3f60: 00 00[fa]fa fa fa 00 00 00 00 00 00 00 00 00 fa 0x00012f0a3f70: fa fa fa fa fd fd fd fd fd fd fd fd fd fa fa fa 0x00012f0a3f80: fa fa 00 00 00 00 00 00 00 00 00 fa fa fa fa fa 0x00012f0a3f90: fd fd fd fd fd fd fd fd fd fd fa fa fa fa 00 00 0x00012f0a3fa0: 00 00 00 00 00 00 00 00 fa fa fa fa fd fd fd fd 0x00012f0a3fb0: fd fd fd fd fd fa fa fa fa fa 00 00 00 00 00 00 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 2018-11-07 16:21:02.104134+0200 test-kronos[5187:1096238] ================================================================= 2018-11-07 16:21:02.104177+0200 test-kronos[5187:1096238] ==5187==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x00016131fb10 at pc 0x000101e74b58 bp 0x00016f45c170 sp 0x00016f45c168 2018-11-07 16:21:02.104190+0200 test-kronos[5187:1096238] READ of size 1 at 0x00016131fb10 thread T0 2018-11-07 16:21:02.104201+0200 test-kronos[5187:1096238] #0 0x101e74b57 in $S6Kronos15InternetAddressO7storageACSgSPySo09sockaddr_D0VG_tcfC (/private/var/containers/Bundle/Application/F2850C00-9448-4D65-BB5A-2054D5522F9E/test-kronos.app/Frameworks/Kronos.framework/Kronos:arm64+0x18b57) 2018-11-07 16:21:02.104215+0200 test-kronos[5187:1096238] #1 0x101e6c563 in $S6Kronos11DNSResolverC7resolve4host7timeout10completionySS_SdySayAA15InternetAddressOGctFZySo9CFHostRefa_So0I8InfoTypeVSPySo13CFStreamErroraGSgSvSgtcfU_AISg10Foundation4DataVXEfU0_ATSPySo16sockaddr_storageVGXEfU_ (/private/var/containers/Bundle/Application/F2850C00-9448-4D65-BB5A-2054D5522F9E/test-kronos.app/Frameworks/Kronos.framework/Kronos:arm64+0x10563) 2018-11-07 16:21:02.104472+0200 test-kronos[5187:1096238] #2 0x101e6cc7b in $SSPySo16sockaddr_storageVG6Kronos15InternetAddressOSgs5Error_pIgydzo_AcGsAH_pIegyrzo_TR (/private/var/containers/Bundle/Application/F2850C00-9448-4D65-BB5A-2054D5522F9E/test-kronos.app/Frameworks/Kronos.framework/Kronos:arm64+0x10c7b) 2018-11-07 16:21:02.104499+0200 test-kronos[5187:1096238] #3 0x101e6f8d3 in $SSPySo16sockaddr_storageVG6Kronos15InternetAddressOSgs5Error_pIgydzo_AcGsAH_pIegyrzo_TRTA (/private/var/containers/Bundle/Application/F2850C00-9448-4D65-BB5A-2054D5522F9E/test-kronos.app/Frameworks/Kronos.framework/Kronos:arm64+0x138d3) 2018-11-07 16:21:02.104511+0200 test-kronos[5187:1096238] #4 0x102703357 in $S10Foundation4DataV15withUnsafeBytesyxxSPyq_GKXEKr0_lFxSWKXEfU_TA (/private/var/containers/Bundle/Application/F2850C00-9448-4D65-BB5A-2054D5522F9E/test-kronos.app/Frameworks/libswiftFoundation.dylib:arm64+0xe7357) 2018-11-07 16:21:02.104991+0200 test-kronos[5187:1096238] #5 0x1026334e3 in $S10Foundation12_DataStorageC15withUnsafeBytes2in5applyxSnySiG_xSWKXEtKlF (/private/var/containers/Bundle/Application/F2850C00-9448-4D65-BB5A-2054D5522F9E/test-kronos.app/Frameworks/libswiftFoundation.dylib:arm64+0x174e3) 2018-11-07 16:21:02.105007+0200 test-kronos[5187:1096238] #6 0x102638ecb in $S10Foundation4DataV15withUnsafeBytesyxxSPyq_GKXEKr0_lF (/private/var/containers/Bundle/Application/F2850C00-9448-4D65-BB5A-2054D5522F9E/test-kronos.app/Frameworks/libswiftFoundation.dylib:arm64+0x1cecb) 2018-11-07 16:21:02.105017+0200 test-kronos[5187:1096238] #7 0x101e6bcbb in $S6Kronos11DNSResolverC7resolve4host7timeout10completionySS_SdySayAA15InternetAddressOGctFZySo9CFHostRefa_So0I8InfoTypeVSPySo13CFStreamErroraGSgSvSgtcfU_AISg10Foundation4DataVXEfU0_ (/private/var/containers/Bundle/Application/F2850C00-9448-4D65-BB5A-2054D5522F9E/test-kronos.app/Frameworks/Kronos.framework/Kronos:arm64+0xfcbb) 2018-11-07 16:21:02.105073+0200 test-kronos[5187:1096238] #8 0x101e6d5cb in $S10Foundation4DataV6Kronos15InternetAddressOSgs5Error_pIggdzo_AcGsAH_pIegnrzo_TR (/private/var/containers/Bundle/Application/F2850C00-9448-4D65-BB5A-2054D5522F9E/test-kronos.app/Frameworks/Kronos.framework/Kronos:arm64+0x115cb) 2018-11-07 16:21:02.105086+0200 test-kronos[5187:1096238] #9 0x101e6f767 in $S10Foundation4DataV6Kronos15InternetAddressOSgs5Error_pIggdzo_AcGsAH_pIegnrzo_TRTA (/private/var/containers/Bundle/Application/F2850C00-9448-4D65-BB5A-2054D5522F9E/test-kronos.app/Frameworks/Kronos.framework/Kronos:arm64+0x13767) 2018-11-07 16:21:02.105115+0200 test-kronos[5187:1096238] #10 0x10206d2d7 in $SSTsE10compactMapySayqd__Gqd__Sg7ElementQzKXEKlF (/private/var/containers/Bundle/Application/F2850C00-9448-4D65-BB5A-2054D5522F9E/test-kronos.app/Frameworks/libswiftCore.dylib:arm64+0x1652d7) 2018-11-07 16:21:02.105150+0200 test-kronos[5187:1096238] #11 0x101e6b13b in $S6Kronos11DNSResolverC7resolve4host7timeout10completionySS_SdySayAA15InternetAddressOGctFZySo9CFHostRefa_So0I8InfoTypeVSPySo13CFStreamErroraGSgSvSgtcfU_ (/private/var/containers/Bundle/Application/F2850C00-9448-4D65-BB5A-2054D5522F9E/test-kronos.app/Frameworks/Kronos.framework/Kronos:arm64+0xf13b) 2018-11-07 16:21:02.105179+0200 test-kronos[5187:1096238] #12 0x101e6dda3 in $S6Kronos11DNSResolverC7resolve4host7timeout10completionySS_SdySayAA15InternetAddressOGctFZySo9CFHostRefa_So0I8InfoTypeVSPySo13CFStreamErroraGSgSvSgtcfU_To (/private/var/containers/Bundle/Application/F2850C00-9448-4D65-BB5A-2054D5522F9E/test-kronos.app/Frameworks/Kronos.framework/Kronos:arm64+0x11da3) 2018-11-07 16:21:02.105190+0200 test-kronos[5187:1096238] #13 0x225f3546f in (/System/Library/Frameworks/CFNetwork.framework/CFNetwork:arm64+0x22b46f) 2018-11-07 16:21:02.105200+0200 test-kronos[5187:1096238] #14 0x225f34deb in (/System/Library/Frameworks/CFNetwork.framework/CFNetwork:arm64+0x22adeb) 2018-11-07 16:21:02.105209+0200 test-kronos[5187:1096238] #15 0x225f3456b in (/System/Library/Frameworks/CFNetwork.framework/CFNetwork:arm64+0x22a56b) 2018-11-07 16:21:02.105236+0200 test-kronos[5187:1096238] #16 0x2256f01cb in (/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation:arm64+0xac1cb) 2018-11-07 16:21:02.105246+0200 test-kronos[5187:1096238] #17 0x2256f014b in (/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation:arm64+0xac14b) 2018-11-07 16:21:02.105255+0200 test-kronos[5187:1096238] #18 0x2256efa2f in (/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation:arm64+0xaba2f) 2018-11-07 16:21:02.105264+0200 test-kronos[5187:1096238] #19 0x2256ea8fb in (/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation:arm64+0xa68fb) 2018-11-07 16:21:02.105289+0200 test-kronos[5187:1096238] #20 0x2256ea1cb in CFRunLoopRunSpecific (/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation:arm64+0xa61cb) 2018-11-07 16:21:02.105316+0200 test-kronos[5187:1096238] #21 0x227961583 in GSEventRunModal (/System/Library/PrivateFrameworks/GraphicsServices.framework/GraphicsServices:arm64+0xb583) 2018-11-07 16:21:02.105326+0200 test-kronos[5187:1096238] #22 0x25292d053 in UIApplicationMain (/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore:arm64+0x8e8053) 2018-11-07 16:21:02.105359+0200 test-kronos[5187:1096238] #23 0x1009a843b in main (/var/containers/Bundle/Application/F2850C00-9448-4D65-BB5A-2054D5522F9E/test-kronos.app/test-kronos:arm64+0x10000843b) 2018-11-07 16:21:02.105380+0200 test-kronos[5187:1096238] #24 0x2251aabb3 in (/usr/lib/system/libdyld.dylib:arm64+0xbb3) 2018-11-07 16:21:02.105390+0200 test-kronos[5187:1096238] 2018-11-07 16:21:02.105398+0200 test-kronos[5187:1096238] 0x00016131fb10 is located 0 bytes to the right of 80-byte region [0x00016131fac0,0x00016131fb10) 2018-11-07 16:21:02.105407+0200 test-kronos[5187:1096238] allocated by thread T4 here: 2018-11-07 16:21:02.105416+0200 test-kronos[5187:1096238] #0 0x100d217eb in __sanitizer_mz_malloc (/var/containers/Bundle/Application/F2850C00-9448-4D65-BB5A-2054D5522F9E/test-kronos.app/Frameworks/libclang_rt.asan_ios_dynamic.dylib:arm64+0x4d7eb) 2018-11-07 16:21:02.105442+0200 test-kronos[5187:1096238] #1 0x22533d99f in malloc_zone_malloc (/usr/lib/system/libsystem_malloc.dylib:arm64+0x1099f) 2018-11-07 16:21:02.105466+0200 test-kronos[5187:1096238] #2 0x2256f113b in _CFRuntimeCreateInstance (/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation:arm64+0xad13b) 2018-11-07 16:21:02.105476+0200 test-kronos[5187:1096238] #3 0x2256b326b in (/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation:arm64+0x6f26b) 2018-11-07 16:21:02.105489+0200 test-kronos[5187:1096238] #4 0x225e8fb6b in (/System/Library/Frameworks/CFNetwork.framework/CFNetwork:arm64+0x185b6b) 2018-11-07 16:21:02.105507+0200 test-kronos[5187:1096238] #5 0x2252a4ce3 in (/usr/lib/system/libsystem_info.dylib:arm64+0x11ce3) 2018-11-07 16:21:02.105534+0200 test-kronos[5187:1096238] #6 0x2252b6927 in si_async_handle_reply (/usr/lib/system/libsystem_info.dylib:arm64+0x23927) 2018-11-07 16:21:02.105543+0200 test-kronos[5187:1096238] #7 0x2252a4e77 in getaddrinfo_async_handle_reply (/usr/lib/system/libsystem_info.dylib:arm64+0x11e77) 2018-11-07 16:21:02.105579+0200 test-kronos[5187:1096238] #8 0x225f34617 in (/System/Library/Frameworks/CFNetwork.framework/CFNetwork:arm64+0x22a617) 2018-11-07 16:21:02.105603+0200 test-kronos[5187:1096238] #9 0x225f3472b in (/System/Library/Frameworks/CFNetwork.framework/CFNetwork:arm64+0x22a72b) 2018-11-07 16:21:02.105613+0200 test-kronos[5187:1096238] #10 0x100d201b3 in __wrap_dispatch_source_set_cancel_handler_block_invoke (/var/containers/Bundle/Application/F2850C00-9448-4D65-BB5A-2054D5522F9E/test-kronos.app/Frameworks/libclang_rt.asan_ios_dynamic.dylib:arm64+0x4c1b3) 2018-11-07 16:21:02.105768+0200 test-kronos[5187:1096238] #11 0x102a07823 in _dispatch_call_block_and_release (/usr/lib/system/introspection/libdispatch.dylib:arm64+0x3823) 2018-11-07 16:21:02.105805+0200 test-kronos[5187:1096238] #12 0x102a08dc7 in _dispatch_client_callout (/usr/lib/system/introspection/libdispatch.dylib:arm64+0x4dc7) 2018-11-07 16:21:02.105815+0200 test-kronos[5187:1096238] #13 0x102a0c1c3 in _dispatch_continuation_pop (/usr/lib/system/introspection/libdispatch.dylib:arm64+0x81c3) 2018-11-07 16:21:02.105824+0200 test-kronos[5187:1096238] #14 0x102a1e9ef in _dispatch_source_invoke (/usr/lib/system/introspection/libdispatch.dylib:arm64+0x1a9ef) 2018-11-07 16:21:02.105834+0200 test-kronos[5187:1096238] #15 0x102a1bbfb in _dispatch_workloop_worker_thread (/usr/lib/system/introspection/libdispatch.dylib:arm64+0x17bfb) 2018-11-07 16:21:02.105843+0200 test-kronos[5187:1096238] #16 0x22537c0db in _pthread_wqthread (/usr/lib/system/libsystem_pthread.dylib:arm64+0xc0db) 2018-11-07 16:21:02.105852+0200 test-kronos[5187:1096238] #17 0x22537eceb in start_wqthread (/usr/lib/system/libsystem_pthread.dylib:arm64+0xeceb) 2018-11-07 16:21:02.106253+0200 test-kronos[5187:1096238] 2018-11-07 16:21:02.106284+0200 test-kronos[5187:1096238] Thread T4 created by T3 here: 2018-11-07 16:21:02.106296+0200 test-kronos[5187:1096238] 2018-11-07 16:21:02.106306+0200 test-kronos[5187:1096238] 2018-11-07 16:21:02.106326+0200 test-kronos[5187:1096238] Thread T3 created by T0 here: 2018-11-07 16:21:02.106336+0200 test-kronos[5187:1096238] #0 0x100d19afb in wrap_pthread_create (/var/containers/Bundle/Application/F2850C00-9448-4D65-BB5A-2054D5522F9E/test-kronos.app/Frameworks/libclang_rt.asan_ios_dynamic.dylib:arm64+0x45afb) 2018-11-07 16:21:02.106348+0200 test-kronos[5187:1096238] #1 0x2260dcc07 in (/System/Library/Frameworks/Foundation.framework/Foundation:arm64+0x5c07) 2018-11-07 16:21:02.106359+0200 test-kronos[5187:1096238] #2 0x252a1a88f in (/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore:arm64+0x9d588f) 2018-11-07 16:21:02.106405+0200 test-kronos[5187:1096238] #3 0x252a19807 in (/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore:arm64+0x9d4807) 2018-11-07 16:21:02.106416+0200 test-kronos[5187:1096238] #4 0x25292d40f in (/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore:arm64+0x8e840f) 2018-11-07 16:21:02.106426+0200 test-kronos[5187:1096238] #5 0x25292d01f in UIApplicationMain (/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore:arm64+0x8e801f) 2018-11-07 16:21:02.106437+0200 test-kronos[5187:1096238] #6 0x1009a843b in main (/var/containers/Bundle/Application/F2850C00-9448-4D65-BB5A-2054D5522F9E/test-kronos.app/test-kronos:arm64+0x10000843b) 2018-11-07 16:21:02.106605+0200 test-kronos[5187:1096238] #7 0x2251aabb3 in (/usr/lib/system/libdyld.dylib:arm64+0xbb3) 2018-11-07 16:21:02.106619+0200 test-kronos[5187:1096238] 2018-11-07 16:21:02.106628+0200 test-kronos[5187:1096238] SUMMARY: AddressSanitizer: heap-buffer-overflow (/private/var/containers/Bundle/Application/F2850C00-9448-4D65-BB5A-2054D5522F9E/test-kronos.app/Frameworks/Kronos.framework/Kronos:arm64+0x18b57) in $S6Kronos15InternetAddressO7storageACSgSPySo09sockaddr_D0VG_tcfC 2018-11-07 16:21:02.106664+0200 test-kronos[5187:1096238] Shadow bytes around the buggy address: 2018-11-07 16:21:02.106692+0200 test-kronos[5187:1096238] 0x00012f0a3f10: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 2018-11-07 16:21:02.106703+0200 test-kronos[5187:1096238] 0x00012f0a3f20: 00 00 00 00 00 00 00 00 00 00 fa fa fa fa 00 00 2018-11-07 16:21:02.106713+0200 test-kronos[5187:1096238] 0x00012f0a3f30: 00 00 00 00 00 00 00 00 fa fa fa fa 00 00 00 00 2018-11-07 16:21:02.106724+0200 test-kronos[5187:1096238] 0x00012f0a3f40: 00 00 00 00 00 00 fa fa fa fa 00 00 00 00 00 00 2018-11-07 16:21:02.106734+0200 test-kronos[5187:1096238] 0x00012f0a3f50: 00 00 00 00 fa fa fa fa 00 00 00 00 00 00 00 00 2018-11-07 16:21:02.106745+0200 test-kronos[5187:1096238] =>0x00012f0a3f60: 00 00[fa]fa fa fa 00 00 00 00 00 00 00 00 00 fa 2018-11-07 16:21:02.106778+0200 test-kronos[5187:1096238] 0x00012f0a3f70: fa fa fa fa fd fd fd fd fd fd fd fd fd fa fa fa 2018-11-07 16:21:02.106789+0200 test-kronos[5187:1096238] 0x00012f0a3f80: fa fa 00 00 00 00 00 00 00 00 00 fa fa fa fa fa 2018-11-07 16:21:02.106799+0200 test-kronos[5187:1096238] 0x00012f0a3f90: fd fd fd fd fd fd fd fd fd fd fa fa fa fa 00 00 2018-11-07 16:21:02.106849+0200 test-kronos[5187:1096238] 0x00012f0a3fa0: 00 00 00 00 00 00 00 00 fa fa fa fa fd fd fd fd 2018-11-07 16:21:02.106863+0200 test-kronos[5187:1096238] 0x00012f0a3fb0: fd fd fd fd fd fa fa fa fa fa 00 00 00 00 00 00 2018-11-07 16:21:02.106873+0200 test-kronos[5187:1096238] Shadow byte legend (one shadow byte represents 8 application bytes): 2018-11-07 16:21:02.106884+0200 test-kronos[5187:1096238] Addressable: 00 2018-11-07 16:21:02.106894+0200 test-kronos[5187:1096238] Partially addressable: 01 02 03 04 05 06 07 2018-11-07 16:21:02.106939+0200 test-kronos[5187:1096238] Heap left redzone: fa 2018-11-07 16:21:02.106950+0200 test-kronos[5187:1096238] Freed heap region: fd 2018-11-07 16:21:02.106960+0200 test-kronos[5187:1096238] Stack left redzone: f1 2018-11-07 16:21:02.106969+0200 test-kronos[5187:1096238] Stack mid redzone: f2 2018-11-07 16:21:02.106979+0200 test-kronos[5187:1096238] Stack right redzone: f3 2018-11-07 16:21:02.106988+0200 test-kronos[5187:1096238] Stack after return: f5 2018-11-07 16:21:02.107000+0200 test-kronos[5187:1096238] Stack use after scope: f8 2018-11-07 16:21:02.107010+0200 test-kronos[5187:1096238] Global redzone: f9 2018-11-07 16:21:02.107019+0200 test-kronos[5187:1096238] Global init order: f6 2018-11-07 16:21:02.107029+0200 test-kronos[5187:1096238] Poisoned by user: f7 2018-11-07 16:21:02.107039+0200 test-kronos[5187:1096238] Container overflow: fc 2018-11-07 16:21:02.107092+0200 test-kronos[5187:1096238] Array cookie: ac 2018-11-07 16:21:02.107105+0200 test-kronos[5187:1096238] Intra object redzone: bb 2018-11-07 16:21:02.107114+0200 test-kronos[5187:1096238] ASan internal: fe 2018-11-07 16:21:02.107124+0200 test-kronos[5187:1096238] Left alloca redzone: ca 2018-11-07 16:21:02.107133+0200 test-kronos[5187:1096238] Right alloca redzone: cb 2018-11-07 16:21:02.107143+0200 test-kronos[5187:1096238] ==5187==ABORTING AddressSanitizer report breakpoint hit. Use 'thread info -s' to get extended information about the report. (lldb)