From d08fa289f12cf04aaaaab63cbd9f44333f4b3e26e32b43c2b152a0aec22f3f6f Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Wed, 8 Apr 2020 13:39:12 +0000 Subject: [PATCH] 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 --- gs99-overrun.diff | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {