diff options
Diffstat (limited to 'dev-libs/ucommon/files/ucommon-5.2.2-address.patch')
-rw-r--r-- | dev-libs/ucommon/files/ucommon-5.2.2-address.patch | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/dev-libs/ucommon/files/ucommon-5.2.2-address.patch b/dev-libs/ucommon/files/ucommon-5.2.2-address.patch index d74f9299b9ba..142aa5941f8c 100644 --- a/dev-libs/ucommon/files/ucommon-5.2.2-address.patch +++ b/dev-libs/ucommon/files/ucommon-5.2.2-address.patch @@ -1,9 +1,10 @@ -This patch fixes fortify source +This patch fixes memory errors -Author: David Sugar <dyfet@gnutelephony.org> ---- /commoncpp/address.cpp -+++ /commoncpp/address.cpp -@@ -360,7 +360,7 @@ void IPV4Address::setAddress(const char *host) +Author: David Sugar + +--- commoncpp/address.cpp ++++ commoncpp/address.cpp +@@ -360,7 +360,7 @@ if(ipaddr) delete[] ipaddr; ipaddr = new struct in_addr[1]; @@ -11,19 +12,17 @@ Author: David Sugar <dyfet@gnutelephony.org> + memset((void *)&ipaddr[0], 0, sizeof(struct in_addr)); return; } - -@@ -498,7 +498,7 @@ IPV6Address::IPV6Address(const IPV6Validator -*_validator) + +@@ -498,7 +498,7 @@ : validator(_validator), hostname(NULL) { addr_count = 1; ipaddr = new struct in6_addr[1]; - memcpy(ipaddr, &in6addr_any, sizeof(in6_addr)); + memcpy(ipaddr, &in6addr_any, sizeof(struct in6_addr)); } - - IPV6Address::IPV6Address(const char *address, const IPV6Validator -*_validator) : -@@ -716,7 +716,7 @@ void IPV6Address::setAddress(const char *host) + + IPV6Address::IPV6Address(const char *address, const IPV6Validator *_validator) : +@@ -716,7 +716,7 @@ if(ipaddr) delete[] ipaddr; ipaddr = new struct in6_addr[1]; @@ -31,8 +30,8 @@ Author: David Sugar <dyfet@gnutelephony.org> + memset((void *)&ipaddr[0], 0, sizeof(struct in6_addr)); return; } - -@@ -796,7 +796,7 @@ void IPV6Address::setAddress(const char *host) + +@@ -796,7 +796,7 @@ if(ipaddr) delete[] ipaddr; ipaddr = new struct in6_addr[1]; @@ -40,3 +39,4 @@ Author: David Sugar <dyfet@gnutelephony.org> + memset((void *)&ipaddr[0], 0, sizeof(struct in6_addr)); return; } + |