Open FatsharkGo opened 3 years ago
Under what valid (i.e., IPv4/IPv6) scenarios might this throw in practice?
It was running on Android and threw on a bounch of systems:
We have no idea about the scenario as the crash report and telemetry did not collect any data of this.
Function
AsyncUDPSocket::handleRead()
is specified asnoexcept
, it callsvoid SocketAddress::setFromSockaddr(const struct sockaddr* address, socklen_t addrlen)
which will throw exceptionstd::invalid_argument
, but the function call does not in any catch block,std::terminate
will be called if a exception is threw out. A tested fix is: