GithubHelp home page GithubHelp logo

svdo / swift-netutils Goto Github PK

View Code? Open in Web Editor NEW
108.0 9.0 21.0 834 KB

Swift library that simplifies getting information about your network interfaces and their properties, both for iOS and OS X.

Home Page: http://svdo.github.io/swift-netutils/

License: MIT License

Swift 82.92% Shell 10.69% Objective-C 5.06% Ruby 1.33%
swift networking macos ios swift-library carthage cocoapods swift-package-manager

swift-netutils's People

Contributors

abuobaida avatar gitter-badger avatar ivirtex avatar svdo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

swift-netutils's Issues

2.0.1 - Unable to compile on XCode 8 using Swift 2.3

I'm getting four redefinition errors in the module.modulemap.

  • Redefinition of module 'Compression'
  • Redefinition of module 'Darwin'
  • Redefinition of module 'os'
  • Redefinition of module 'libkern'

I'm also getting an error in Interface.swift: Could not build Objective-C module 'ifaddrs'

I see that you have a commit in your 3.0.1 branch for fixing module.modulemap however making that change does not fix the errors for Swift 2.3.

Would appreciate a build that corrects these errors for your 2.0.X branch.

Thanks!

Carthage Support

Hi Stefan,

did you ever consider supporting carthage? It would be pretty simple, you just need to share you build scheme - I tried it locally and it work's perfectly.

Support SSID detection

Hi there,

wouldn't it be interesting to extend your library? A WLAN SSID detection / extraction would be nice.

There´s an existing piece of code you could use, even tough it's declared deprecated (Apple officially recommends it this way).

IP Addresses return strange results

I install the pod using cocoa pods and use class Interface , call allInterfaces() and get Ip addresses from it .

My problem is that only my device IP address is right but other ip addresses return strange result like the follow :

"::c88a:2405:100:0"
"fe80::c88a:2405:100:0"
"192.168.2.11"

What is the problem ? and how i solve it ?

No longer building with CocoaPods

I'm currently trying to solve the same problem you so nicely documented in https://ind.ie/labs/blog/using-system-headers-in-swift/. Finally, after stripping my library down, piece by piece by painful piece, I was still getting errors, and so I tried with yours and found it's no longer working there either. I'm hoping you have some insights!

Here's what I did, and the results:

$ git clone https://github.com/svdo/swift-netutils.git
Cloning into 'swift-netutils'...
....
$ cd swift-netutils/
$ pod --version
0.39.0
$ xcodebuild -version
Xcode 7.2
Build version 7C68
$ pod lib lint NetUtils.podspec.json

 -> NetUtils (1.3.2)
    - ERROR | xcodebuild: Returned an unsuccessful exit code. You can use `--verbose` for more information.
    - ERROR | xcodebuild:  /Users/path/to/swift-netutils/NetUtils/Interface.swift:4:8: error: no such module 'ifaddrs'

[!] NetUtils did not pass validation, due to 2 errors.
You can use the `--no-clean` option to inspect any issue.
$

Thanks in advance...!

macOS target

Documentation says that this project is compatible with macOS, but while building it for target macOS I got following error:

#> carthage update swift-netutils --platform macOS
*** Fetching swift-netutils
*** Checking out swift-netutils at "4.0.2"
*** xcodebuild output can be found in /var/folders/q4/5b6w7_cj55s43n7l7mz3bj2h0000gn/T/carthage-xcodebuild.WTiDTz.log
*** Skipped building swift-netutils due to the error:
Dependency "swift-netutils" has no shared framework schemes for any of the platforms: Mac

If you believe this to be an error, please file an issue with the maintainers at https://github.com/svdo/swift-netutils/issues/new

Return just the current active internal IP

Hi! I am wondering if there is a way in swift to return the IP address only of the current active interface. I am working on an app which will display the active internal IP regardless of what interface they are using.

Swift 2.2 Issues

On CI currently getting this failure.

▸ Building Pods/NetUtils [Debug]
▸ Check Dependencies
▸ Compiling Interface.swift

❌  /Applications/Xcode-7.3.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.3.sdk/usr/include/module.modulemap:1:8: redefinition of module 'Compression'

module Compression [system] [extern_c] {
       ^



❌  /Applications/Xcode-7.3.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.3.sdk/usr/include/module.modulemap:6:8: redefinition of module 'Darwin'

module Darwin [system] [extern_c] {
       ^

❌  /Applications/Xcode-7.3.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.3.sdk/usr/include/module.modulemap:1599:8: redefinition of module 'os'

module os [system] [extern_c] {
       ^

❌  /Applications/Xcode-7.3.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.3.sdk/usr/include/module.modulemap:1615:8: redefinition of module 'libkern'

module libkern [system] [extern_c] {
       ^

❌  /Users/distiller/katasi-ios-tracking/Pods/NetUtils/NetUtils/Interface.swift:4:8: could not build Objective-C module 'ifaddrs'

import ifaddrs
       ^

2016-03-25 10:17:13.088 xcodebuild[1209:9201] Connection peer refused channel request for "dtxproxy:XCTestManager_IDEInterface:XCTestManager_DaemonConnectionInterface"; channel canceled <DTXChannel: 0x7fba546af000>

Testing failed:
Redefinition of module 'Compression'
Redefinition of module 'Darwin'
Redefinition of module 'os'
Redefinition of module 'libkern'
Could not build Objective-C module 'ifaddrs'

Will try to investigate further.

Heap buffer overflow caused by IPv4 / IPv6 confusion

Running an app on a wifi-only iPad with iOS 11.3 (15E216) connected to an IPv4-only network. Application configured with AddressSanitizer fails on calls to extractAddress_ipv6(). This call should never happen as the device does not have an IPv6 address.

I've seen something similar on another iPad with an IPv6 address bound to the LTE radio, but this is a first on a Wifi only device. See this: https://forums.developer.apple.com/thread/111661 for background.

Here's the backtrace:

(lldb) bt
* thread #1, queue = 'com.apple.main-thread', stop reason = Heap buffer overflow
    frame #0: 0x0000000101881598 libclang_rt.asan_ios_dynamic.dylib`__asan::AsanDie()
    frame #1: 0x00000001018979b8 libclang_rt.asan_ios_dynamic.dylib`__sanitizer::Die() + 156
    frame #2: 0x000000010187f080 libclang_rt.asan_ios_dynamic.dylib`__asan::ScopedInErrorReport::~ScopedInErrorReport() + 308
    frame #3: 0x000000010187e940 libclang_rt.asan_ios_dynamic.dylib`__asan::ReportGenericError(unsigned long, unsigned long, unsigned long, unsigned long, bool, unsigned long, unsigned int, bool) + 352
    frame #4: 0x000000010187654c libclang_rt.asan_ios_dynamic.dylib`__asan_memcpy + 740
  * frame #5: 0x0000000105826e24 NetUtils`static Interface.extractAddress_ipv6(address=0x000000014d540f4c, self=NetUtils.Interface) at Interface.swift:168
    frame #6: 0x00000001058264fc NetUtils`closure #1 in static Interface.extractAddress($0=0x000000014d540f4c, address=0x000000014d540f4c, self=NetUtils.Interface) at Interface.swift:142
    frame #7: 0x0000000105827758 NetUtils`thunk for @callee_guaranteed (@unowned UnsafeMutablePointer<sockaddr_storage>) -> (@owned String?, @error @owned Error) at <compiler-generated>:0
    frame #8: 0x000000010582e620 NetUtils`partial apply for thunk for @callee_guaranteed (@unowned UnsafeMutablePointer<sockaddr_storage>) -> (@owned String?, @error @owned Error) at <compiler-generated>:0
    frame #9: 0x000000010688b614 libswiftCore.dylib`Swift.UnsafePointer.withMemoryRebound<A, B>(to: A1.Type, capacity: Swift.Int, _: (Swift.UnsafePointer<A1>) throws -> B1) throws -> B1 + 24
    frame #10: 0x0000000106a95b10 libswiftCore.dylib`Swift.UnsafeMutablePointer.withMemoryRebound<A, B>(to: A1.Type, capacity: Swift.Int, _: (Swift.UnsafeMutablePointer<A1>) throws -> B1) throws -> B1 + 12
    frame #11: 0x0000000105825d60 NetUtils`static Interface.extractAddress(address=0x000000014d540f4c, self=NetUtils.Interface) at Interface.swift:137
    frame #12: 0x0000000105823f74 NetUtils`Interface.init(data=Darwin.ifaddrs @ 0x00000001510e9020) at Interface.swift:111
    frame #13: 0x0000000105822cac NetUtils`Interface.__allocating_init(data:) at Interface.swift:0
    frame #14: 0x0000000105822834 NetUtils`static Interface.allInterfaces(self=NetUtils.Interface) at Interface.swift:72
    frame #15: 0x0000000100b209e8 FlightBox PFD`getEthernetAddress() at Utilities.swift:185
    frame #16: 0x0000000100b1fd04 FlightBox PFD`getEthernetServerAddress() at Utilities.swift:89
    frame #17: 0x0000000100b1f500 FlightBox PFD`getServerAddress() at Utilities.swift:129
    frame #18: 0x0000000100cdc4c4 FlightBox PFD`FBFlightBoxManager.loadServiceURLs(self=0x000000014cb6af00) at FBFlightBoxManager.swift:162
    frame #19: 0x0000000100cdf24c FlightBox PFD`FBFlightBoxManager.init(self=0x000000014cb6af00) at FBFlightBoxManager.swift:194
    frame #20: 0x0000000100cd5ad4 FlightBox PFD`FBFlightBoxManager.__allocating_init() at FBFlightBoxManager.swift:0
    frame #21: 0x0000000100cd5a84 FlightBox PFD`globalinit_33_C6FC4D97414131894ED700EFB1F706E1_func17 at FBFlightBoxManager.swift:83
    frame #22: 0x0000000107405220 libdispatch.dylib`_dispatch_client_callout + 16
    frame #23: 0x0000000107405f34 libdispatch.dylib`dispatch_once_f + 120
    frame #24: 0x0000000106ab9e18 libswiftCore.dylib`swift_once + 40
    frame #25: 0x0000000100cd5b80 FlightBox PFD`FBFlightBoxManager.sharedInstance.unsafeMutableAddressor at FBFlightBoxManager.swift:83
    frame #26: 0x0000000100cdd9c8 FlightBox PFD`static FBFlightBoxManager.shared.getter(self=<unavailable>) at FBFlightBoxManager.swift:180
    frame #27: 0x0000000100a59c18 FlightBox PFD`MainViewController.viewDidLoad(self=0x000000014e315880) at MainViewController.swift:26
    frame #28: 0x0000000100a5ad48 FlightBox PFD`@objc MainViewController.viewDidLoad() at <compiler-generated>:0
    frame #29: 0x000000018f7a6ee0 UIKit`-[UIViewController loadViewIfRequired] + 1020
    frame #30: 0x000000018f7a6acc UIKit`-[UIViewController view] + 28
    frame #31: 0x000000018f797d60 UIKit`-[UIWindow addRootViewControllerViewIfPossible] + 136
    frame #32: 0x000000018f796b94 UIKit`-[UIWindow _setHidden:forced:] + 272
    frame #33: 0x000000018f8246a8 UIKit`-[UIWindow makeKeyAndVisible] + 48
    frame #34: 0x000000018f79a2f0 UIKit`-[UIApplication _callInitializationDelegatesForMainScene:transitionContext:] + 3660
    frame #35: 0x000000018f76765c UIKit`-[UIApplication _runWithMainScene:transitionContext:completion:] + 1680
    frame #36: 0x000000018fd97a0c UIKit`__111-[__UICanvasLifecycleMonitor_Compatability _scheduleFirstCommitForScene:transition:firstActivation:completion:]_block_invoke + 784
    frame #37: 0x000000018f766e4c UIKit`+[_UICanvas _enqueuePostSettingUpdateTransactionBlock:] + 160
    frame #38: 0x000000018f766ce8 UIKit`-[__UICanvasLifecycleMonitor_Compatability _scheduleFirstCommitForScene:transition:firstActivation:completion:] + 240
    frame #39: 0x000000018f765b78 UIKit`-[__UICanvasLifecycleMonitor_Compatability activateEventsOnly:withContext:completion:] + 724
    frame #40: 0x00000001903fb72c UIKit`__82-[_UIApplicationCanvas _transitionLifecycleStateWithTransitionContext:completion:]_block_invoke + 296
    frame #41: 0x000000018f765268 UIKit`-[_UIApplicationCanvas _transitionLifecycleStateWithTransitionContext:completion:] + 432
    frame #42: 0x00000001901e09b8 UIKit`__125-[_UICanvasLifecycleSettingsDiffAction performActionsForCanvas:withUpdatedScene:settingsDiff:fromSettings:transitionContext:]_block_invoke + 220
    frame #43: 0x000000019032eae8 UIKit`_performActionsWithDelayForTransitionContext + 112
    frame #44: 0x000000018f764c88 UIKit`-[_UICanvasLifecycleSettingsDiffAction performActionsForCanvas:withUpdatedScene:settingsDiff:fromSettings:transitionContext:] + 248
    frame #45: 0x000000018f764624 UIKit`-[_UICanvas scene:didUpdateWithDiff:transitionContext:completion:] + 368
    frame #46: 0x000000018f76165c UIKit`-[UIApplication workspace:didCreateScene:withTransitionContext:completion:] + 540
    frame #47: 0x000000018f7613ac UIKit`-[UIApplicationSceneClientAgent scene:didInitializeWithEvent:completion:] + 364
    frame #48: 0x00000001883c8470 FrontBoardServices`-[FBSSceneImpl _didCreateWithTransitionContext:completion:] + 364
    frame #49: 0x00000001883d0d6c FrontBoardServices`__56-[FBSWorkspace client:handleCreateScene:withCompletion:]_block_invoke_2 + 224
    frame #50: 0x0000000107405220 libdispatch.dylib`_dispatch_client_callout + 16
    frame #51: 0x0000000107411850 libdispatch.dylib`_dispatch_block_invoke_direct + 232
    frame #52: 0x00000001883fc878 FrontBoardServices`__FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 36
    frame #53: 0x00000001883fc51c FrontBoardServices`-[FBSSerialQueue _performNext] + 404
    frame #54: 0x00000001883fcab8 FrontBoardServices`-[FBSSerialQueue _performNextFromRunLoopSource] + 56
    frame #55: 0x0000000185b73404 CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24
    frame #56: 0x0000000185b72c2c CoreFoundation`__CFRunLoopDoSources0 + 276
    frame #57: 0x0000000185b7079c CoreFoundation`__CFRunLoopRun + 1204
    frame #58: 0x0000000185a90da8 CoreFoundation`CFRunLoopRunSpecific + 552
    frame #59: 0x0000000187a73020 GraphicsServices`GSEventRunModal + 100
    frame #60: 0x000000018fa7178c UIKit`UIApplicationMain + 236
    frame #61: 0x0000000100d4af9c FlightBox PFD`main at AppDelegate.swift:13
    frame #62: 0x0000000185521fc0 libdyld.dylib`start + 4

And here's the dump from the debugger / AddressSanitizer:

2018-12-07 12:29:21.539043-0800 FlightBox PFD[234:3972] [Accessibility] ****************** Loading GAX Client Bundle ****************
GLMapManager version 1.0.5 initialized.
12:29:21.856 - FBPDF Flight State Monitor Active
12:29:21.902 - Stratux Sitation Link Active
=================================================================
==234==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x00014da423a1 at pc 0x000101f9652c bp 0x00016f31cc10 sp 0x00016f31c3a8
READ of size 128 at 0x00014da423a1 thread T0
    #0 0x101f9652b in __asan_memcpy (/var/containers/Bundle/Application/1961AEBD-F8F7-4A5F-B14C-A5A873F76247/FlightBox PFD.app/Frameworks/libclang_rt.asan_ios_dynamic.dylib:arm64+0x4a52b)
    #1 0x105db6e23 in $S8NetUtils9InterfaceC19extractAddress_ipv633_BD2DD2F753CB5A3586C801481F0D0435LLySSSgSpySo16sockaddr_storageVGFZ (/private/var/containers/Bundle/Application/1961AEBD-F8F7-4A5F-B14C-A5A873F76247/FlightBox PFD.app/Frameworks/NetUtils.framework/NetUtils:arm64+0xee23)
    #2 0x105db64fb in $S8NetUtils9InterfaceC14extractAddress33_BD2DD2F753CB5A3586C801481F0D0435LLySSSgSpySo8sockaddrVGSgFZAFSpySo0N8_storageVGXEfU_ (/private/var/containers/Bundle/Application/1961AEBD-F8F7-4A5F-B14C-A5A873F76247/FlightBox PFD.app/Frameworks/NetUtils.framework/NetUtils:arm64+0xe4fb)
    #3 0x105db7757 in $SSpySo16sockaddr_storageVGSSSgs5Error_pIgyozo_AcDsAE_pIegyrzo_TR (/private/var/containers/Bundle/Application/1961AEBD-F8F7-4A5F-B14C-A5A873F76247/FlightBox PFD.app/Frameworks/NetUtils.framework/NetUtils:arm64+0xf757)
    #4 0x105dbe61f in $SSpySo16sockaddr_storageVGSSSgs5Error_pIgyozo_AcDsAE_pIegyrzo_TRTA (/private/var/containers/Bundle/Application/1961AEBD-F8F7-4A5F-B14C-A5A873F76247/FlightBox PFD.app/Frameworks/NetUtils.framework/NetUtils:arm64+0x1661f)
    #5 0x106e3b613 in $SSP17withMemoryRebound2to8capacity_qd_0_qd__m_Siqd_0_SPyqd__GKXEtKr0_lF (/private/var/containers/Bundle/Application/1961AEBD-F8F7-4A5F-B14C-A5A873F76247/FlightBox PFD.app/Frameworks/libswiftCore.dylib:arm64+0x93613)
    #6 0x107045b0f in $SSp17withMemoryRebound2to8capacity_qd_0_qd__m_Siqd_0_Spyqd__GKXEtKr0_lF (/private/var/containers/Bundle/Application/1961AEBD-F8F7-4A5F-B14C-A5A873F76247/FlightBox PFD.app/Frameworks/libswiftCore.dylib:arm64+0x29db0f)
    #7 0x105db5d5f in $S8NetUtils9InterfaceC14extractAddress33_BD2DD2F753CB5A3586C801481F0D0435LLySSSgSpySo8sockaddrVGSgFZ (/private/var/containers/Bundle/Application/1961AEBD-F8F7-4A5F-B14C-A5A873F76247/FlightBox PFD.app/Frameworks/NetUtils.framework/NetUtils:arm64+0xdd5f)
    #8 0x105db3f73 in $S8NetUtils9InterfaceC4dataACSo7ifaddrsV_tcfc (/private/var/containers/Bundle/Application/1961AEBD-F8F7-4A5F-B14C-A5A873F76247/FlightBox PFD.app/Frameworks/NetUtils.framework/NetUtils:arm64+0xbf73)
    #9 0x105db2cab in $S8NetUtils9InterfaceC4dataACSo7ifaddrsV_tcfC (/private/var/containers/Bundle/Application/1961AEBD-F8F7-4A5F-B14C-A5A873F76247/FlightBox PFD.app/Frameworks/NetUtils.framework/NetUtils:arm64+0xacab)
    #10 0x105db2833 in $S8NetUtils9InterfaceC13allInterfacesSayACGyFZ (/private/var/containers/Bundle/Application/1961AEBD-F8F7-4A5F-B14C-A5A873F76247/FlightBox PFD.app/Frameworks/NetUtils.framework/NetUtils:arm64+0xa833)
    #11 0x1010c4a07 in $S13FlightBox_PFD18getEthernetAddressSSSgyF (/var/containers/Bundle/Application/1961AEBD-F8F7-4A5F-B14C-A5A873F76247/FlightBox PFD.app/FlightBox PFD:arm64+0x1005e8a07)
    #12 0x1010c3d23 in $S13FlightBox_PFD24getEthernetServerAddressSSSgyF (/var/containers/Bundle/Application/1961AEBD-F8F7-4A5F-B14C-A5A873F76247/FlightBox PFD.app/FlightBox PFD:arm64+0x1005e7d23)
    #13 0x1010c351f in $S13FlightBox_PFD16getServerAddressSSSgyF (/var/containers/Bundle/Application/1961AEBD-F8F7-4A5F-B14C-A5A873F76247/FlightBox PFD.app/FlightBox PFD:arm64+0x1005e751f)
    #14 0x1012804e3 in $S13FlightBox_PFD08FBFlightB7ManagerC15loadServiceURLsyyF (/var/containers/Bundle/Application/1961AEBD-F8F7-4A5F-B14C-A5A873F76247/FlightBox PFD.app/FlightBox PFD:arm64+0x1007a44e3)
    #15 0x10128326b in $S13FlightBox_PFD08FBFlightB7ManagerCACycfc (/var/containers/Bundle/Application/1961AEBD-F8F7-4A5F-B14C-A5A873F76247/FlightBox PFD.app/FlightBox PFD:arm64+0x1007a726b)
    #16 0x101279af3 in $S13FlightBox_PFD08FBFlightB7ManagerCACycfC (/var/containers/Bundle/Application/1961AEBD-F8F7-4A5F-B14C-A5A873F76247/FlightBox PFD.app/FlightBox PFD:arm64+0x10079daf3)
    #17 0x101279aa3 in globalinit_33_C6FC4D97414131894ED700EFB1F706E1_func17 (/var/containers/Bundle/Application/1961AEBD-F8F7-4A5F-B14C-A5A873F76247/FlightBox PFD.app/FlightBox PFD:arm64+0x10079daa3)
    #18 0x1079a121f in _dispatch_client_callout (/usr/lib/system/introspection/libdispatch.dylib:arm64+0x121f)
    #19 0x1079a1f33 in dispatch_once_f (/usr/lib/system/introspection/libdispatch.dylib:arm64+0x1f33)
    #20 0x107069e17 in swift_once (/private/var/containers/Bundle/Application/1961AEBD-F8F7-4A5F-B14C-A5A873F76247/FlightBox PFD.app/Frameworks/libswiftCore.dylib:arm64+0x2c1e17)
    #21 0x101279b9f in $S13FlightBox_PFD08FBFlightB7ManagerC14sharedInstance33_C6FC4D97414131894ED700EFB1F706E1LLACvau (/var/containers/Bundle/Application/1961AEBD-F8F7-4A5F-B14C-A5A873F76247/FlightBox PFD.app/FlightBox PFD:arm64+0x10079db9f)
    #22 0x1012819e7 in $S13FlightBox_PFD08FBFlightB7ManagerC6sharedACvgZ (/var/containers/Bundle/Application/1961AEBD-F8F7-4A5F-B14C-A5A873F76247/FlightBox PFD.app/FlightBox PFD:arm64+0x1007a59e7)
    #23 0x100ffdc37 in $S13FlightBox_PFD18MainViewControllerC11viewDidLoadyyF (/var/containers/Bundle/Application/1961AEBD-F8F7-4A5F-B14C-A5A873F76247/FlightBox PFD.app/FlightBox PFD:arm64+0x100521c37)
    #24 0x100ffed67 in $S13FlightBox_PFD18MainViewControllerC11viewDidLoadyyFTo (/var/containers/Bundle/Application/1961AEBD-F8F7-4A5F-B14C-A5A873F76247/FlightBox PFD.app/FlightBox PFD:arm64+0x100522d67)
    #25 0x18f7a6edf in <redacted> (/System/Library/Frameworks/UIKit.framework/UIKit:arm64+0x52edf)
    #26 0x18f7a6acb in <redacted> (/System/Library/Frameworks/UIKit.framework/UIKit:arm64+0x52acb)
    #27 0x18f797d5f in <redacted> (/System/Library/Frameworks/UIKit.framework/UIKit:arm64+0x43d5f)
    #28 0x18f796b93 in <redacted> (/System/Library/Frameworks/UIKit.framework/UIKit:arm64+0x42b93)
    #29 0x18f8246a7 in <redacted> (/System/Library/Frameworks/UIKit.framework/UIKit:arm64+0xd06a7)
    #30 0x18f79a2ef in <redacted> (/System/Library/Frameworks/UIKit.framework/UIKit:arm64+0x462ef)
    #31 0x18f76765b in <redacted> (/System/Library/Frameworks/UIKit.framework/UIKit:arm64+0x1365b)
    #32 0x18fd97a0b in <redacted> (/System/Library/Frameworks/UIKit.framework/UIKit:arm64+0x643a0b)
    #33 0x18f766e4b in <redacted> (/System/Library/Frameworks/UIKit.framework/UIKit:arm64+0x12e4b)
    #34 0x18f766ce7 in <redacted> (/System/Library/Frameworks/UIKit.framework/UIKit:arm64+0x12ce7)
    #35 0x18f765b77 in <redacted> (/System/Library/Frameworks/UIKit.framework/UIKit:arm64+0x11b77)
    #36 0x1903fb72b in <redacted> (/System/Library/Frameworks/UIKit.framework/UIKit:arm64+0xca772b)
    #37 0x18f765267 in <redacted> (/System/Library/Frameworks/UIKit.framework/UIKit:arm64+0x11267)
    #38 0x1901e09b7 in <redacted> (/System/Library/Frameworks/UIKit.framework/UIKit:arm64+0xa8c9b7)
    #39 0x19032eae7 in _performActionsWithDelayForTransitionContext (/System/Library/Frameworks/UIKit.framework/UIKit:arm64+0xbdaae7)
    #40 0x18f764c87 in <redacted> (/System/Library/Frameworks/UIKit.framework/UIKit:arm64+0x10c87)
    #41 0x18f764623 in <redacted> (/System/Library/Frameworks/UIKit.framework/UIKit:arm64+0x10623)
    #42 0x18f76165b in <redacted> (/System/Library/Frameworks/UIKit.framework/UIKit:arm64+0xd65b)
    #43 0x18f7613ab in <redacted> (/System/Library/Frameworks/UIKit.framework/UIKit:arm64+0xd3ab)
    #44 0x1883c846f in <redacted> (/System/Library/PrivateFrameworks/FrontBoardServices.framework/FrontBoardServices:arm64+0xc46f)
    #45 0x1883d0d6b in <redacted> (/System/Library/PrivateFrameworks/FrontBoardServices.framework/FrontBoardServices:arm64+0x14d6b)
    #46 0x1079a121f in _dispatch_client_callout (/usr/lib/system/introspection/libdispatch.dylib:arm64+0x121f)
    #47 0x1079ad84f in _dispatch_block_invoke_direct (/usr/lib/system/introspection/libdispatch.dylib:arm64+0xd84f)
    #48 0x1883fc877 in <redacted> (/System/Library/PrivateFrameworks/FrontBoardServices.framework/FrontBoardServices:arm64+0x40877)
    #49 0x1883fc51b in <redacted> (/System/Library/PrivateFrameworks/FrontBoardServices.framework/FrontBoardServices:arm64+0x4051b)
    #50 0x1883fcab7 in <redacted> (/System/Library/PrivateFrameworks/FrontBoardServices.framework/FrontBoardServices:arm64+0x40ab7)
    #51 0x185b73403 in <redacted> (/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation:arm64+0xee403)
    #52 0x185b72c2b in <redacted> (/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation:arm64+0xedc2b)
    #53 0x185b7079b in <redacted> (/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation:arm64+0xeb79b)
    #54 0x185a90da7 in CFRunLoopRunSpecific (/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation:arm64+0xbda7)
    #55 0x187a7301f in GSEventRunModal (/System/Library/PrivateFrameworks/GraphicsServices.framework/GraphicsServices:arm64+0xb01f)
    #56 0x18fa7178b in UIApplicationMain (/System/Library/Frameworks/UIKit.framework/UIKit:arm64+0x31d78b)
    #57 0x1012eefbb in main (/var/containers/Bundle/Application/1961AEBD-F8F7-4A5F-B14C-A5A873F76247/FlightBox PFD.app/FlightBox PFD:arm64+0x100812fbb)
    #58 0x185521fbf in <redacted> (/usr/lib/system/libdyld.dylib:arm64+0xfbf)

0x00014da423a1 is located 0 bytes to the right of 2337-byte region [0x00014da41a80,0x00014da423a1)
allocated by thread T0 here:
    #0 0x101f98cef in wrap_malloc (/var/containers/Bundle/Application/1961AEBD-F8F7-4A5F-B14C-A5A873F76247/FlightBox PFD.app/Frameworks/libclang_rt.asan_ios_dynamic.dylib:arm64+0x4ccef)
    #1 0x1855f88f7 in getifaddrs (/usr/lib/system/libsystem_info.dylib:arm64+0x78f7)
    #2 0x101f8b897 in wrap_getifaddrs (/var/containers/Bundle/Application/1961AEBD-F8F7-4A5F-B14C-A5A873F76247/FlightBox PFD.app/Frameworks/libclang_rt.asan_ios_dynamic.dylib:arm64+0x3f897)
    #3 0x105db14e3 in $S8NetUtils9InterfaceC13allInterfacesSayACGyFZ (/private/var/containers/Bundle/Application/1961AEBD-F8F7-4A5F-B14C-A5A873F76247/FlightBox PFD.app/Frameworks/NetUtils.framework/NetUtils:arm64+0x94e3)
    #4 0x1010c4a07 in $S13FlightBox_PFD18getEthernetAddressSSSgyF (/var/containers/Bundle/Application/1961AEBD-F8F7-4A5F-B14C-A5A873F76247/FlightBox PFD.app/FlightBox PFD:arm64+0x1005e8a07)
    #5 0x1010c3d23 in $S13FlightBox_PFD24getEthernetServerAddressSSSgyF (/var/containers/Bundle/Application/1961AEBD-F8F7-4A5F-B14C-A5A873F76247/FlightBox PFD.app/FlightBox PFD:arm64+0x1005e7d23)
    #6 0x1010c351f in $S13FlightBox_PFD16getServerAddressSSSgyF (/var/containers/Bundle/Application/1961AEBD-F8F7-4A5F-B14C-A5A873F76247/FlightBox PFD.app/FlightBox PFD:arm64+0x1005e751f)
    #7 0x1012804e3 in $S13FlightBox_PFD08FBFlightB7ManagerC15loadServiceURLsyyF (/var/containers/Bundle/Application/1961AEBD-F8F7-4A5F-B14C-A5A873F76247/FlightBox PFD.app/FlightBox PFD:arm64+0x1007a44e3)
    #8 0x10128326b in $S13FlightBox_PFD08FBFlightB7ManagerCACycfc (/var/containers/Bundle/Application/1961AEBD-F8F7-4A5F-B14C-A5A873F76247/FlightBox PFD.app/FlightBox PFD:arm64+0x1007a726b)
    #9 0x101279af3 in $S13FlightBox_PFD08FBFlightB7ManagerCACycfC (/var/containers/Bundle/Application/1961AEBD-F8F7-4A5F-B14C-A5A873F76247/FlightBox PFD.app/FlightBox PFD:arm64+0x10079daf3)
    #10 0x101279aa3 in globalinit_33_C6FC4D97414131894ED700EFB1F706E1_func17 (/var/containers/Bundle/Application/1961AEBD-F8F7-4A5F-B14C-A5A873F76247/FlightBox PFD.app/FlightBox PFD:arm64+0x10079daa3)
    #11 0x1079a121f in _dispatch_client_callout (/usr/lib/system/introspection/libdispatch.dylib:arm64+0x121f)
    #12 0x1079a1f33 in dispatch_once_f (/usr/lib/system/introspection/libdispatch.dylib:arm64+0x1f33)
    #13 0x107069e17 in swift_once (/private/var/containers/Bundle/Application/1961AEBD-F8F7-4A5F-B14C-A5A873F76247/FlightBox PFD.app/Frameworks/libswiftCore.dylib:arm64+0x2c1e17)
    #14 0x101279b9f in $S13FlightBox_PFD08FBFlightB7ManagerC14sharedInstance33_C6FC4D97414131894ED700EFB1F706E1LLACvau (/var/containers/Bundle/Application/1961AEBD-F8F7-4A5F-B14C-A5A873F76247/FlightBox PFD.app/FlightBox PFD:arm64+0x10079db9f)
    #15 0x1012819e7 in $S13FlightBox_PFD08FBFlightB7ManagerC6sharedACvgZ (/var/containers/Bundle/Application/1961AEBD-F8F7-4A5F-B14C-A5A873F76247/FlightBox PFD.app/FlightBox PFD:arm64+0x1007a59e7)
    #16 0x100ffdc37 in $S13FlightBox_PFD18MainViewControllerC11viewDidLoadyyF (/var/containers/Bundle/Application/1961AEBD-F8F7-4A5F-B14C-A5A873F76247/FlightBox PFD.app/FlightBox PFD:arm64+0x100521c37)
    #17 0x100ffed67 in $S13FlightBox_PFD18MainViewControllerC11viewDidLoadyyFTo (/var/containers/Bundle/Application/1961AEBD-F8F7-4A5F-B14C-A5A873F76247/FlightBox PFD.app/FlightBox PFD:arm64+0x100522d67)
    #18 0x18f7a6edf in <redacted> (/System/Library/Frameworks/UIKit.framework/UIKit:arm64+0x52edf)
    #19 0x18f7a6acb in <redacted> (/System/Library/Frameworks/UIKit.framework/UIKit:arm64+0x52acb)
    #20 0x18f797d5f in <redacted> (/System/Library/Frameworks/UIKit.framework/UIKit:arm64+0x43d5f)
    #21 0x18f796b93 in <redacted> (/System/Library/Frameworks/UIKit.framework/UIKit:arm64+0x42b93)
    #22 0x18f8246a7 in <redacted> (/System/Library/Frameworks/UIKit.framework/UIKit:arm64+0xd06a7)
    #23 0x18f79a2ef in <redacted> (/System/Library/Frameworks/UIKit.framework/UIKit:arm64+0x462ef)
    #24 0x18f76765b in <redacted> (/System/Library/Frameworks/UIKit.framework/UIKit:arm64+0x1365b)
    #25 0x18fd97a0b in <redacted> (/System/Library/Frameworks/UIKit.framework/UIKit:arm64+0x643a0b)
    #26 0x18f766e4b in <redacted> (/System/Library/Frameworks/UIKit.framework/UIKit:arm64+0x12e4b)
    #27 0x18f766ce7 in <redacted> (/System/Library/Frameworks/UIKit.framework/UIKit:arm64+0x12ce7)
    #28 0x18f765b77 in <redacted> (/System/Library/Frameworks/UIKit.framework/UIKit:arm64+0x11b77)
    #29 0x1903fb72b in <redacted> (/System/Library/Frameworks/UIKit.framework/UIKit:arm64+0xca772b)

SUMMARY: AddressSanitizer: heap-buffer-overflow (/var/containers/Bundle/Application/1961AEBD-F8F7-4A5F-B14C-A5A873F76247/FlightBox PFD.app/Frameworks/libclang_rt.asan_ios_dynamic.dylib:arm64+0x4a52b) in __asan_memcpy
Shadow bytes around the buggy address:
  0x000131948420: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x000131948430: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x000131948440: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x000131948450: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x000131948460: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
=>0x000131948470: 00 00 00 00[01]fa fa fa fa fa fa fa fa fa fa fa
  0x000131948480: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x000131948490: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x0001319484a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x0001319484b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x0001319484c0: 00 00 00 00 00 00 00 00 00 00 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-12-07 12:29:21.976904-0800 FlightBox PFD[234:3972] =================================================================
2018-12-07 12:29:21.977091-0800 FlightBox PFD[234:3972] ==234==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x00014da423a1 at pc 0x000101f9652c bp 0x00016f31cc10 sp 0x00016f31c3a8
2018-12-07 12:29:21.977113-0800 FlightBox PFD[234:3972] READ of size 128 at 0x00014da423a1 thread T0
2018-12-07 12:29:21.977140-0800 FlightBox PFD[234:3972]     #0 0x101f9652b in __asan_memcpy (/var/containers/Bundle/Application/1961AEBD-F8F7-4A5F-B14C-A5A873F76247/FlightBox PFD.app/Frameworks/libclang_rt.asan_ios_dynamic.dylib:arm64+0x4a52b)
2018-12-07 12:29:21.977157-0800 FlightBox PFD[234:3972]     #1 0x105db6e23 in $S8NetUtils9InterfaceC19extractAddress_ipv633_BD2DD2F753CB5A3586C801481F0D0435LLySSSgSpySo16sockaddr_storageVGFZ (/private/var/containers/Bundle/Application/1961AEBD-F8F7-4A5F-B14C-A5A873F76247/FlightBox PFD.app/Frameworks/NetUtils.framework/NetUtils:arm64+0xee23)
2018-12-07 12:29:21.977174-0800 FlightBox PFD[234:3972]     #2 0x105db64fb in $S8NetUtils9InterfaceC14extractAddress33_BD2DD2F753CB5A3586C801481F0D0435LLySSSgSpySo8sockaddrVGSgFZAFSpySo0N8_storageVGXEfU_ (/private/var/containers/Bundle/Application/1961AEBD-F8F7-4A5F-B14C-A5A873F76247/FlightBox PFD.app/Frameworks/NetUtils.framework/NetUtils:arm64+0xe4fb)
2018-12-07 12:29:21.978580-0800 FlightBox PFD[234:3972]     #3 0x105db7757 in $SSpySo16sockaddr_storageVGSSSgs5Error_pIgyozo_AcDsAE_pIegyrzo_TR (/private/var/containers/Bundle/Application/1961AEBD-F8F7-4A5F-B14C-A5A873F76247/FlightBox PFD.app/Frameworks/NetUtils.framework/NetUtils:arm64+0xf757)
2018-12-07 12:29:21.978622-0800 FlightBox PFD[234:3972]     #4 0x105dbe61f in $SSpySo16sockaddr_storageVGSSSgs5Error_pIgyozo_AcDsAE_pIegyrzo_TRTA (/private/var/containers/Bundle/Application/1961AEBD-F8F7-4A5F-B14C-A5A873F76247/FlightBox PFD.app/Frameworks/NetUtils.framework/NetUtils:arm64+0x1661f)
2018-12-07 12:29:21.978644-0800 FlightBox PFD[234:3972]     #5 0x106e3b613 in $SSP17withMemoryRebound2to8capacity_qd_0_qd__m_Siqd_0_SPyqd__GKXEtKr0_lF (/private/var/containers/Bundle/Application/1961AEBD-F8F7-4A5F-B14C-A5A873F76247/FlightBox PFD.app/Frameworks/libswiftCore.dylib:arm64+0x93613)
2018-12-07 12:29:21.980398-0800 FlightBox PFD[234:3972]     #6 0x107045b0f in $SSp17withMemoryRebound2to8capacity_qd_0_qd__m_Siqd_0_Spyqd__GKXEtKr0_lF (/private/var/containers/Bundle/Application/1961AEBD-F8F7-4A5F-B14C-A5A873F76247/FlightBox PFD.app/Frameworks/libswiftCore.dylib:arm64+0x29db0f)
2018-12-07 12:29:21.980430-0800 FlightBox PFD[234:3972]     #7 0x105db5d5f in $S8NetUtils9InterfaceC14extractAddress33_BD2DD2F753CB5A3586C801481F0D0435LLySSSgSpySo8sockaddrVGSgFZ (/private/var/containers/Bundle/Application/1961AEBD-F8F7-4A5F-B14C-A5A873F76247/FlightBox PFD.app/Frameworks/NetUtils.framework/NetUtils:arm64+0xdd5f)
2018-12-07 12:29:21.980449-0800 FlightBox PFD[234:3972]     #8 0x105db3f73 in $S8NetUtils9InterfaceC4dataACSo7ifaddrsV_tcfc (/private/var/containers/Bundle/Application/1961AEBD-F8F7-4A5F-B14C-A5A873F76247/FlightBox PFD.app/Frameworks/NetUtils.framework/NetUtils:arm64+0xbf73)
2018-12-07 12:29:21.984099-0800 FlightBox PFD[234:3972]     #9 0x105db2cab in $S8NetUtils9InterfaceC4dataACSo7ifaddrsV_tcfC (/private/var/containers/Bundle/Application/1961AEBD-F8F7-4A5F-B14C-A5A873F76247/FlightBox PFD.app/Frameworks/NetUtils.framework/NetUtils:arm64+0xacab)
2018-12-07 12:29:21.984136-0800 FlightBox PFD[234:3972]     #10 0x105db2833 in $S8NetUtils9InterfaceC13allInterfacesSayACGyFZ (/private/var/containers/Bundle/Application/1961AEBD-F8F7-4A5F-B14C-A5A873F76247/FlightBox PFD.app/Frameworks/NetUtils.framework/NetUtils:arm64+0xa833)
2018-12-07 12:29:21.984153-0800 FlightBox PFD[234:3972]     #11 0x1010c4a07 in $S13FlightBox_PFD18getEthernetAddressSSSgyF (/var/containers/Bundle/Application/1961AEBD-F8F7-4A5F-B14C-A5A873F76247/FlightBox PFD.app/FlightBox PFD:arm64+0x1005e8a07)
2018-12-07 12:29:21.984169-0800 FlightBox PFD[234:3972]     #12 0x1010c3d23 in $S13FlightBox_PFD24getEthernetServerAddressSSSgyF (/var/containers/Bundle/Application/1961AEBD-F8F7-4A5F-B14C-A5A873F76247/FlightBox PFD.app/FlightBox PFD:arm64+0x1005e7d23)
2018-12-07 12:29:21.986678-0800 FlightBox PFD[234:3972]     #13 0x1010c351f in $S13FlightBox_PFD16getServerAddressSSSgyF (/var/containers/Bundle/Application/1961AEBD-F8F7-4A5F-B14C-A5A873F76247/FlightBox PFD.app/FlightBox PFD:arm64+0x1005e751f)
2018-12-07 12:29:21.986821-0800 FlightBox PFD[234:3972]     #14 0x1012804e3 in $S13FlightBox_PFD08FBFlightB7ManagerC15loadServiceURLsyyF (/var/containers/Bundle/Application/1961AEBD-F8F7-4A5F-B14C-A5A873F76247/FlightBox PFD.app/FlightBox PFD:arm64+0x1007a44e3)
2018-12-07 12:29:21.986837-0800 FlightBox PFD[234:3972]     #15 0x10128326b in $S13FlightBox_PFD08FBFlightB7ManagerCACycfc (/var/containers/Bundle/Application/1961AEBD-F8F7-4A5F-B14C-A5A873F76247/FlightBox PFD.app/FlightBox PFD:arm64+0x1007a726b)
2018-12-07 12:29:21.986857-0800 FlightBox PFD[234:3972]     #16 0x101279af3 in $S13FlightBox_PFD08FBFlightB7ManagerCACycfC (/var/containers/Bundle/Application/1961AEBD-F8F7-4A5F-B14C-A5A873F76247/FlightBox PFD.app/FlightBox PFD:arm64+0x10079daf3)
2018-12-07 12:29:21.989672-0800 FlightBox PFD[234:3972]     #17 0x101279aa3 in globalinit_33_C6FC4D97414131894ED700EFB1F706E1_func17 (/var/containers/Bundle/Application/1961AEBD-F8F7-4A5F-B14C-A5A873F76247/FlightBox PFD.app/FlightBox PFD:arm64+0x10079daa3)
2018-12-07 12:29:21.989707-0800 FlightBox PFD[234:3972]     #18 0x1079a121f in _dispatch_client_callout (/usr/lib/system/introspection/libdispatch.dylib:arm64+0x121f)
2018-12-07 12:29:21.989724-0800 FlightBox PFD[234:3972]     #19 0x1079a1f33 in dispatch_once_f (/usr/lib/system/introspection/libdispatch.dylib:arm64+0x1f33)
2018-12-07 12:29:21.989739-0800 FlightBox PFD[234:3972]     #20 0x107069e17 in swift_once (/private/var/containers/Bundle/Application/1961AEBD-F8F7-4A5F-B14C-A5A873F76247/FlightBox PFD.app/Frameworks/libswiftCore.dylib:arm64+0x2c1e17)
2018-12-07 12:29:21.989754-0800 FlightBox PFD[234:3972]     #21 0x101279b9f in $S13FlightBox_PFD08FBFlightB7ManagerC14sharedInstance33_C6FC4D97414131894ED700EFB1F706E1LLACvau (/var/containers/Bundle/Application/1961AEBD-F8F7-4A5F-B14C-A5A873F76247/FlightBox PFD.app/FlightBox PFD:arm64+0x10079db9f)
2018-12-07 12:29:21.990208-0800 FlightBox PFD[234:3972]     #22 0x1012819e7 in $S13FlightBox_PFD08FBFlightB7ManagerC6sharedACvgZ (/var/containers/Bundle/Application/1961AEBD-F8F7-4A5F-B14C-A5A873F76247/FlightBox PFD.app/FlightBox PFD:arm64+0x1007a59e7)
2018-12-07 12:29:21.990225-0800 FlightBox PFD[234:3972]     #23 0x100ffdc37 in $S13FlightBox_PFD18MainViewControllerC11viewDidLoadyyF (/var/containers/Bundle/Application/1961AEBD-F8F7-4A5F-B14C-A5A873F76247/FlightBox PFD.app/FlightBox PFD:arm64+0x100521c37)
2018-12-07 12:29:21.990240-0800 FlightBox PFD[234:3972]     #24 0x100ffed67 in $S13FlightBox_PFD18MainViewControllerC11viewDidLoadyyFTo (/var/containers/Bundle/Application/1961AEBD-F8F7-4A5F-B14C-A5A873F76247/FlightBox PFD.app/FlightBox PFD:arm64+0x100522d67)
2018-12-07 12:29:21.990254-0800 FlightBox PFD[234:3972]     #25 0x18f7a6edf in <redacted> (/System/Library/Frameworks/UIKit.framework/UIKit:arm64+0x52edf)
2018-12-07 12:29:21.991521-0800 FlightBox PFD[234:3972]     #26 0x18f7a6acb in <redacted> (/System/Library/Frameworks/UIKit.framework/UIKit:arm64+0x52acb)
2018-12-07 12:29:21.991552-0800 FlightBox PFD[234:3972]     #27 0x18f797d5f in <redacted> (/System/Library/Frameworks/UIKit.framework/UIKit:arm64+0x43d5f)
2018-12-07 12:29:21.991567-0800 FlightBox PFD[234:3972]     #28 0x18f796b93 in <redacted> (/System/Library/Frameworks/UIKit.framework/UIKit:arm64+0x42b93)
2018-12-07 12:29:21.991581-0800 FlightBox PFD[234:3972]     #29 0x18f8246a7 in <redacted> (/System/Library/Frameworks/UIKit.framework/UIKit:arm64+0xd06a7)
2018-12-07 12:29:21.991614-0800 FlightBox PFD[234:3972]     #30 0x18f79a2ef in <redacted> (/System/Library/Frameworks/UIKit.framework/UIKit:arm64+0x462ef)
2018-12-07 12:29:21.991629-0800 FlightBox PFD[234:3972]     #31 0x18f76765b in <redacted> (/System/Library/Frameworks/UIKit.framework/UIKit:arm64+0x1365b)
2018-12-07 12:29:21.991644-0800 FlightBox PFD[234:3972]     #32 0x18fd97a0b in <redacted> (/System/Library/Frameworks/UIKit.framework/UIKit:arm64+0x643a0b)
2018-12-07 12:29:21.994031-0800 FlightBox PFD[234:3972]     #33 0x18f766e4b in <redacted> (/System/Library/Frameworks/UIKit.framework/UIKit:arm64+0x12e4b)
2018-12-07 12:29:21.994071-0800 FlightBox PFD[234:3972]     #34 0x18f766ce7 in <redacted> (/System/Library/Frameworks/UIKit.framework/UIKit:arm64+0x12ce7)
2018-12-07 12:29:21.994086-0800 FlightBox PFD[234:3972]     #35 0x18f765b77 in <redacted> (/System/Library/Frameworks/UIKit.framework/UIKit:arm64+0x11b77)
2018-12-07 12:29:21.994100-0800 FlightBox PFD[234:3972]     #36 0x1903fb72b in <redacted> (/System/Library/Frameworks/UIKit.framework/UIKit:arm64+0xca772b)
2018-12-07 12:29:21.994114-0800 FlightBox PFD[234:3972]     #37 0x18f765267 in <redacted> (/System/Library/Frameworks/UIKit.framework/UIKit:arm64+0x11267)
2018-12-07 12:29:21.994128-0800 FlightBox PFD[234:3972]     #38 0x1901e09b7 in <redacted> (/System/Library/Frameworks/UIKit.framework/UIKit:arm64+0xa8c9b7)
2018-12-07 12:29:21.996765-0800 FlightBox PFD[234:3972]     #39 0x19032eae7 in _performActionsWithDelayForTransitionContext (/System/Library/Frameworks/UIKit.framework/UIKit:arm64+0xbdaae7)
2018-12-07 12:29:21.996800-0800 FlightBox PFD[234:3972]     #40 0x18f764c87 in <redacted> (/System/Library/Frameworks/UIKit.framework/UIKit:arm64+0x10c87)
2018-12-07 12:29:21.996815-0800 FlightBox PFD[234:3972]     #41 0x18f764623 in <redacted> (/System/Library/Frameworks/UIKit.framework/UIKit:arm64+0x10623)
2018-12-07 12:29:21.996830-0800 FlightBox PFD[234:3972]     #42 0x18f76165b in <redacted> (/System/Library/Frameworks/UIKit.framework/UIKit:arm64+0xd65b)
2018-12-07 12:29:21.996844-0800 FlightBox PFD[234:3972]     #43 0x18f7613ab in <redacted> (/System/Library/Frameworks/UIKit.framework/UIKit:arm64+0xd3ab)
2018-12-07 12:29:21.996858-0800 FlightBox PFD[234:3972]     #44 0x1883c846f in <redacted> (/System/Library/PrivateFrameworks/FrontBoardServices.framework/FrontBoardServices:arm64+0xc46f)
2018-12-07 12:29:22.000025-0800 FlightBox PFD[234:3972]     #45 0x1883d0d6b in <redacted> (/System/Library/PrivateFrameworks/FrontBoardServices.framework/FrontBoardServices:arm64+0x14d6b)
2018-12-07 12:29:22.000057-0800 FlightBox PFD[234:3972]     #46 0x1079a121f in _dispatch_client_callout (/usr/lib/system/introspection/libdispatch.dylib:arm64+0x121f)
2018-12-07 12:29:22.000072-0800 FlightBox PFD[234:3972]     #47 0x1079ad84f in _dispatch_block_invoke_direct (/usr/lib/system/introspection/libdispatch.dylib:arm64+0xd84f)
2018-12-07 12:29:22.000088-0800 FlightBox PFD[234:3972]     #48 0x1883fc877 in <redacted> (/System/Library/PrivateFrameworks/FrontBoardServices.framework/FrontBoardServices:arm64+0x40877)
2018-12-07 12:29:22.000102-0800 FlightBox PFD[234:3972]     #49 0x1883fc51b in <redacted> (/System/Library/PrivateFrameworks/FrontBoardServices.framework/FrontBoardServices:arm64+0x4051b)
2018-12-07 12:29:22.000116-0800 FlightBox PFD[234:3972]     #50 0x1883fcab7 in <redacted> (/System/Library/PrivateFrameworks/FrontBoardServices.framework/FrontBoardServices:arm64+0x40ab7)
2018-12-07 12:29:22.001256-0800 FlightBox PFD[234:3972]     #51 0x185b73403 in <redacted> (/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation:arm64+0xee403)
2018-12-07 12:29:22.001286-0800 FlightBox PFD[234:3972]     #52 0x185b72c2b in <redacted> (/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation:arm64+0xedc2b)
2018-12-07 12:29:22.001302-0800 FlightBox PFD[234:3972]     #53 0x185b7079b in <redacted> (/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation:arm64+0xeb79b)
2018-12-07 12:29:22.001318-0800 FlightBox PFD[234:3972]     #54 0x185a90da7 in CFRunLoopRunSpecific (/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation:arm64+0xbda7)
2018-12-07 12:29:22.001332-0800 FlightBox PFD[234:3972]     #55 0x187a7301f in GSEventRunModal (/System/Library/PrivateFrameworks/GraphicsServices.framework/GraphicsServices:arm64+0xb01f)
2018-12-07 12:29:22.001365-0800 FlightBox PFD[234:3972]     #56 0x18fa7178b in UIApplicationMain (/System/Library/Frameworks/UIKit.framework/UIKit:arm64+0x31d78b)
2018-12-07 12:29:22.004088-0800 FlightBox PFD[234:3972]     #57 0x1012eefbb in main (/var/containers/Bundle/Application/1961AEBD-F8F7-4A5F-B14C-A5A873F76247/FlightBox PFD.app/FlightBox PFD:arm64+0x100812fbb)
2018-12-07 12:29:22.004122-0800 FlightBox PFD[234:3972]     #58 0x185521fbf in <redacted> (/usr/lib/system/libdyld.dylib:arm64+0xfbf)
2018-12-07 12:29:22.004138-0800 FlightBox PFD[234:3972] 
2018-12-07 12:29:22.004183-0800 FlightBox PFD[234:3972] 0x00014da423a1 is located 0 bytes to the right of 2337-byte region [0x00014da41a80,0x00014da423a1)
2018-12-07 12:29:22.004200-0800 FlightBox PFD[234:3972] allocated by thread T0 here:
2018-12-07 12:29:22.004215-0800 FlightBox PFD[234:3972]     #0 0x101f98cef in wrap_malloc (/var/containers/Bundle/Application/1961AEBD-F8F7-4A5F-B14C-A5A873F76247/FlightBox PFD.app/Frameworks/libclang_rt.asan_ios_dynamic.dylib:arm64+0x4ccef)
2018-12-07 12:29:22.004230-0800 FlightBox PFD[234:3972]     #1 0x1855f88f7 in getifaddrs (/usr/lib/system/libsystem_info.dylib:arm64+0x78f7)
2018-12-07 12:29:22.006917-0800 FlightBox PFD[234:3972]     #2 0x101f8b897 in wrap_getifaddrs (/var/containers/Bundle/Application/1961AEBD-F8F7-4A5F-B14C-A5A873F76247/FlightBox PFD.app/Frameworks/libclang_rt.asan_ios_dynamic.dylib:arm64+0x3f897)
2018-12-07 12:29:22.006952-0800 FlightBox PFD[234:3972]     #3 0x105db14e3 in $S8NetUtils9InterfaceC13allInterfacesSayACGyFZ (/private/var/containers/Bundle/Application/1961AEBD-F8F7-4A5F-B14C-A5A873F76247/FlightBox PFD.app/Frameworks/NetUtils.framework/NetUtils:arm64+0x94e3)
2018-12-07 12:29:22.006969-0800 FlightBox PFD[234:3972]     #4 0x1010c4a07 in $S13FlightBox_PFD18getEthernetAddressSSSgyF (/var/containers/Bundle/Application/1961AEBD-F8F7-4A5F-B14C-A5A873F76247/FlightBox PFD.app/FlightBox PFD:arm64+0x1005e8a07)
2018-12-07 12:29:22.006985-0800 FlightBox PFD[234:3972]     #5 0x1010c3d23 in $S13FlightBox_PFD24getEthernetServerAddressSSSgyF (/var/containers/Bundle/Application/1961AEBD-F8F7-4A5F-B14C-A5A873F76247/FlightBox PFD.app/FlightBox PFD:arm64+0x1005e7d23)
2018-12-07 12:29:22.008508-0800 FlightBox PFD[234:3972]     #6 0x1010c351f in $S13FlightBox_PFD16getServerAddressSSSgyF (/var/containers/Bundle/Application/1961AEBD-F8F7-4A5F-B14C-A5A873F76247/FlightBox PFD.app/FlightBox PFD:arm64+0x1005e751f)
2018-12-07 12:29:22.008541-0800 FlightBox PFD[234:3972]     #7 0x1012804e3 in $S13FlightBox_PFD08FBFlightB7ManagerC15loadServiceURLsyyF (/var/containers/Bundle/Application/1961AEBD-F8F7-4A5F-B14C-A5A873F76247/FlightBox PFD.app/FlightBox PFD:arm64+0x1007a44e3)
2018-12-07 12:29:22.008556-0800 FlightBox PFD[234:3972]     #8 0x10128326b in $S13FlightBox_PFD08FBFlightB7ManagerCACycfc (/var/containers/Bundle/Application/1961AEBD-F8F7-4A5F-B14C-A5A873F76247/FlightBox PFD.app/FlightBox PFD:arm64+0x1007a726b)
2018-12-07 12:29:22.008571-0800 FlightBox PFD[234:3972]     #9 0x101279af3 in $S13FlightBox_PFD08FBFlightB7ManagerCACycfC (/var/containers/Bundle/Application/1961AEBD-F8F7-4A5F-B14C-A5A873F76247/FlightBox PFD.app/FlightBox PFD:arm64+0x10079daf3)
2018-12-07 12:29:22.009418-0800 FlightBox PFD[234:3972]     #10 0x101279aa3 in globalinit_33_C6FC4D97414131894ED700EFB1F706E1_func17 (/var/containers/Bundle/Application/1961AEBD-F8F7-4A5F-B14C-A5A873F76247/FlightBox PFD.app/FlightBox PFD:arm64+0x10079daa3)
2018-12-07 12:29:22.009442-0800 FlightBox PFD[234:3972]     #11 0x1079a121f in _dispatch_client_callout (/usr/lib/system/introspection/libdispatch.dylib:arm64+0x121f)
2018-12-07 12:29:22.009459-0800 FlightBox PFD[234:3972]     #12 0x1079a1f33 in dispatch_once_f (/usr/lib/system/introspection/libdispatch.dylib:arm64+0x1f33)
2018-12-07 12:29:22.009474-0800 FlightBox PFD[234:3972]     #13 0x107069e17 in swift_once (/private/var/containers/Bundle/Application/1961AEBD-F8F7-4A5F-B14C-A5A873F76247/FlightBox PFD.app/Frameworks/libswiftCore.dylib:arm64+0x2c1e17)
2018-12-07 12:29:22.009489-0800 FlightBox PFD[234:3972]     #14 0x101279b9f in $S13FlightBox_PFD08FBFlightB7ManagerC14sharedInstance33_C6FC4D97414131894ED700EFB1F706E1LLACvau (/var/containers/Bundle/Application/1961AEBD-F8F7-4A5F-B14C-A5A873F76247/FlightBox PFD.app/FlightBox PFD:arm64+0x10079db9f)
2018-12-07 12:29:22.010771-0800 FlightBox PFD[234:3972]     #15 0x1012819e7 in $S13FlightBox_PFD08FBFlightB7ManagerC6sharedACvgZ (/var/containers/Bundle/Application/1961AEBD-F8F7-4A5F-B14C-A5A873F76247/FlightBox PFD.app/FlightBox PFD:arm64+0x1007a59e7)
2018-12-07 12:29:22.010805-0800 FlightBox PFD[234:3972]     #16 0x100ffdc37 in $S13FlightBox_PFD18MainViewControllerC11viewDidLoadyyF (/var/containers/Bundle/Application/1961AEBD-F8F7-4A5F-B14C-A5A873F76247/FlightBox PFD.app/FlightBox PFD:arm64+0x100521c37)
2018-12-07 12:29:22.010821-0800 FlightBox PFD[234:3972]     #17 0x100ffed67 in $S13FlightBox_PFD18MainViewControllerC11viewDidLoadyyFTo (/var/containers/Bundle/Application/1961AEBD-F8F7-4A5F-B14C-A5A873F76247/FlightBox PFD.app/FlightBox PFD:arm64+0x100522d67)
2018-12-07 12:29:22.010836-0800 FlightBox PFD[234:3972]     #18 0x18f7a6edf in <redacted> (/System/Library/Frameworks/UIKit.framework/UIKit:arm64+0x52edf)
2018-12-07 12:29:22.013383-0800 FlightBox PFD[234:3972]     #19 0x18f7a6acb in <redacted> (/System/Library/Frameworks/UIKit.framework/UIKit:arm64+0x52acb)
2018-12-07 12:29:22.013418-0800 FlightBox PFD[234:3972]     #20 0x18f797d5f in <redacted> (/System/Library/Frameworks/UIKit.framework/UIKit:arm64+0x43d5f)
2018-12-07 12:29:22.013441-0800 FlightBox PFD[234:3972]     #21 0x18f796b93 in <redacted> (/System/Library/Frameworks/UIKit.framework/UIKit:arm64+0x42b93)
2018-12-07 12:29:22.013456-0800 FlightBox PFD[234:3972]     #22 0x18f8246a7 in <redacted> (/System/Library/Frameworks/UIKit.framework/UIKit:arm64+0xd06a7)
2018-12-07 12:29:22.013470-0800 FlightBox PFD[234:3972]     #23 0x18f79a2ef in <redacted> (/System/Library/Frameworks/UIKit.framework/UIKit:arm64+0x462ef)
2018-12-07 12:29:22.013484-0800 FlightBox PFD[234:3972]     #24 0x18f76765b in <redacted> (/System/Library/Frameworks/UIKit.framework/UIKit:arm64+0x1365b)
2018-12-07 12:29:22.025018-0800 FlightBox PFD[234:3972]     #25 0x18fd97a0b in <redacted> (/System/Library/Frameworks/UIKit.framework/UIKit:arm64+0x643a0b)
2018-12-07 12:29:22.025068-0800 FlightBox PFD[234:3972]     #26 0x18f766e4b in <redacted> (/System/Library/Frameworks/UIKit.framework/UIKit:arm64+0x12e4b)
2018-12-07 12:29:22.025084-0800 FlightBox PFD[234:3972]     #27 0x18f766ce7 in <redacted> (/System/Library/Frameworks/UIKit.framework/UIKit:arm64+0x12ce7)
2018-12-07 12:29:22.025099-0800 FlightBox PFD[234:3972]     #28 0x18f765b77 in <redacted> (/System/Library/Frameworks/UIKit.framework/UIKit:arm64+0x11b77)
2018-12-07 12:29:22.025114-0800 FlightBox PFD[234:3972]     #29 0x1903fb72b in <redacted> (/System/Library/Frameworks/UIKit.framework/UIKit:arm64+0xca772b)
2018-12-07 12:29:22.025139-0800 FlightBox PFD[234:3972] 
2018-12-07 12:29:22.025152-0800 FlightBox PFD[234:3972] SUMMARY: AddressSanitizer: heap-buffer-overflow (/var/containers/Bundle/Application/1961AEBD-F8F7-4A5F-B14C-A5A873F76247/FlightBox PFD.app/Frameworks/libclang_rt.asan_ios_dynamic.dylib:arm64+0x4a52b) in __asan_memcpy
2018-12-07 12:29:22.026347-0800 FlightBox PFD[234:3972] Shadow bytes around the buggy address:
2018-12-07 12:29:22.026381-0800 FlightBox PFD[234:3972]   0x000131948420: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
2018-12-07 12:29:22.026420-0800 FlightBox PFD[234:3972]   0x000131948430: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
2018-12-07 12:29:22.026436-0800 FlightBox PFD[234:3972]   0x000131948440: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
2018-12-07 12:29:22.026450-0800 FlightBox PFD[234:3972]   0x000131948450: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
2018-12-07 12:29:22.026464-0800 FlightBox PFD[234:3972]   0x000131948460: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
2018-12-07 12:29:22.026478-0800 FlightBox PFD[234:3972] =>0x000131948470: 00 00 00 00[01]fa fa fa fa fa fa fa fa fa fa fa
2018-12-07 12:29:22.026508-0800 FlightBox PFD[234:3972]   0x000131948480: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
2018-12-07 12:29:22.029622-0800 FlightBox PFD[234:3972]   0x000131948490: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
2018-12-07 12:29:22.029651-0800 FlightBox PFD[234:3972]   0x0001319484a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
2018-12-07 12:29:22.029667-0800 FlightBox PFD[234:3972]   0x0001319484b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
2018-12-07 12:29:22.029681-0800 FlightBox PFD[234:3972]   0x0001319484c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
2018-12-07 12:29:22.029695-0800 FlightBox PFD[234:3972] Shadow byte legend (one shadow byte represents 8 application bytes):
2018-12-07 12:29:22.029709-0800 FlightBox PFD[234:3972]   Addressable:           00
2018-12-07 12:29:22.029723-0800 FlightBox PFD[234:3972]   Partially addressable: 01 02 03 04 05 06 07
2018-12-07 12:29:22.029738-0800 FlightBox PFD[234:3972]   Heap left redzone:       fa
2018-12-07 12:29:22.029751-0800 FlightBox PFD[234:3972]   Freed heap region:       fd
2018-12-07 12:29:22.030952-0800 FlightBox PFD[234:3972]   Stack left redzone:      f1
2018-12-07 12:29:22.030987-0800 FlightBox PFD[234:3972]   Stack mid redzone:       f2
2018-12-07 12:29:22.031006-0800 FlightBox PFD[234:3972]   Stack right redzone:     f3
2018-12-07 12:29:22.031019-0800 FlightBox PFD[234:3972]   Stack after return:      f5
2018-12-07 12:29:22.031032-0800 FlightBox PFD[234:3972]   Stack use after scope:   f8
2018-12-07 12:29:22.031064-0800 FlightBox PFD[234:3972]   Global redzone:          f9
2018-12-07 12:29:22.031078-0800 FlightBox PFD[234:3972]   Global init order:       f6
2018-12-07 12:29:22.031091-0800 FlightBox PFD[234:3972]   Poisoned by user:        f7
2018-12-07 12:29:22.031104-0800 FlightBox PFD[234:3972]   Container overflow:      fc
2018-12-07 12:29:22.031116-0800 FlightBox PFD[234:3972]   Array cookie:            ac
2018-12-07 12:29:22.031129-0800 FlightBox PFD[234:3972]   Intra object redzone:    bb
2018-12-07 12:29:22.031141-0800 FlightBox PFD[234:3972]   ASan internal:           fe
2018-12-07 12:29:22.034055-0800 FlightBox PFD[234:3972]   Left alloca redzone:     ca
2018-12-07 12:29:22.034092-0800 FlightBox PFD[234:3972]   Right alloca redzone:    cb
2018-12-07 12:29:22.034106-0800 FlightBox PFD[234:3972] 
==234==ABORTING
AddressSanitizer report breakpoint hit. Use 'thread info -s' to get extended information about the report.

CI for Linux version

Travis doesn't seem to support CI for Swift on Linux at this point. Try to find another way of getting this.

Stack buffer overflow while getting Wifi address

While using NetUtils in a project and running on an iPhone X that was connected to Wifi and having address sanitizer enabled a stack buffer overflow was detected in Interface.swift, function inetNtoP, specifically on the line:
let conversion:UnsafePointer<CChar> = inet_ntop(AF_INET6, &addr6.pointee.sin6_addr, ip, socklen_t(INET6_ADDRSTRLEN))

Here is the thread info reported:
thread #1: tid = 0x282ed4, 0x0000000101742bcc libclang_rt.asan_ios_dynamic.dylib__asan::AsanDie(), queue = 'com.apple.main-thread', stop reason = Stack buffer overflow

{
"access_size" : 16,
"access_type" : 0,
"address" : 6170069936,
"description" : "stack-buffer-overflow",
"instrumentation_class" : "AddressSanitizer",
"pc" : 4319178304,
"stop_type" : "fatal_error"
}`

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.