ndfred / iperf-ios

iPerf 3 library and app for iOS
Other
186 stars 26 forks source link

Crash in iperf_set_test_server_hostname #43

Closed ndfred closed 3 years ago

ndfred commented 3 years ago

strdup calls strlen which crashes, possibly because the string is empty / invalid. iPhone 11 Pro Max, iOS 14.1.

Blocks #41.

ndfred commented 3 years ago

Setting an empty hostname does not trigger the issue, nor does entering wrong hostnames. Calling iperf_set_test_server_hostname with NULL will though, which might happen if the ASCII conversion fails. Entering a Euro or GBP sign as the hostname will trigger the crash.