update gs99-overrun with new approach from ticket

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/gsoap?expand=0&rev=198
This commit is contained in:
Jan Engelhardt 2020-04-08 13:39:12 +00:00 committed by Git OBS Bridge
parent 87ef70c702
commit d08fa289f1

View File

@ -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)
{