diff --git a/gs99-overrun.diff b/gs99-overrun.diff index 8d9ae81..f035d20 100644 --- a/gs99-overrun.diff +++ b/gs99-overrun.diff @@ -17,7 +17,7 @@ Index: gsoap-2.8.100/gsoap/stdsoap2.cpp { struct sockaddr_storage result; - (void)soap_memcpy(&result, sizeof(result), res->ai_addr, sizeof(result)); -+ (void)soap_memcpy(&result, sizeof(result), res->ai_addr, res->ai_addrlen); ++ (void)soap_memcpy(&result, sizeof(result), res->ai_addr, res->ai_addrlen < sizeof(result) ? res->ai_addrlen : sizeof(result)); freeaddrinfo(res); if (result.ss_family == AF_INET6) {