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:
parent
87ef70c702
commit
d08fa289f1
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user