diff options
author | Alexander Vershilov <qnikst@gentoo.org> | 2012-08-19 21:22:43 +0000 |
---|---|---|
committer | Alexander Vershilov <qnikst@gentoo.org> | 2012-08-19 21:22:43 +0000 |
commit | 5db12a07791387f8f11cb023bd170529bc3d3385 (patch) | |
tree | 6f99bd69d7e362b14271801721ca6f1804caa360 /dev-libs/ucommon | |
parent | mask games-strategy/glest for removal cause games-strategy/megaglest supersed... (diff) | |
download | gentoo-2-5db12a07791387f8f11cb023bd170529bc3d3385.tar.gz gentoo-2-5db12a07791387f8f11cb023bd170529bc3d3385.tar.bz2 gentoo-2-5db12a07791387f8f11cb023bd170529bc3d3385.zip |
ucommon-5.2.2 bug#423941 fixed
(Portage version: 2.2.0_alpha120/cvs/Linux x86_64)
Diffstat (limited to 'dev-libs/ucommon')
-rw-r--r-- | dev-libs/ucommon/ChangeLog | 9 | ||||
-rw-r--r-- | dev-libs/ucommon/files/ucommon-5.2.2-address.patch | 42 | ||||
-rw-r--r-- | dev-libs/ucommon/ucommon-5.2.2-r2.ebuild (renamed from dev-libs/ucommon/ucommon-5.2.2-r1.ebuild) | 2 |
3 files changed, 51 insertions, 2 deletions
diff --git a/dev-libs/ucommon/ChangeLog b/dev-libs/ucommon/ChangeLog index 1a0cdbad4eea..bdc222026255 100644 --- a/dev-libs/ucommon/ChangeLog +++ b/dev-libs/ucommon/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for dev-libs/ucommon # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/ucommon/ChangeLog,v 1.4 2012/06/14 16:44:43 maksbotan Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-libs/ucommon/ChangeLog,v 1.5 2012/08/19 21:22:42 qnikst Exp $ + +*ucommon-5.2.2-r2 (20 Aug 2012) + + 20 Aug 2012; Alexander Vershilov <qnikst@gentoo.org> + -ucommon-5.2.2-r1.ebuild, +ucommon-5.2.2-r2.ebuild, + +files/ucommon-5.2.2-address.patch: + fixed bug 423941, patch by David Sugar, thanks to slepnoga *ucommon-5.2.2-r1 (14 Jun 2012) diff --git a/dev-libs/ucommon/files/ucommon-5.2.2-address.patch b/dev-libs/ucommon/files/ucommon-5.2.2-address.patch new file mode 100644 index 000000000000..d74f9299b9ba --- /dev/null +++ b/dev-libs/ucommon/files/ucommon-5.2.2-address.patch @@ -0,0 +1,42 @@ +This patch fixes fortify source + +Author: David Sugar <dyfet@gnutelephony.org> +--- /commoncpp/address.cpp ++++ /commoncpp/address.cpp +@@ -360,7 +360,7 @@ void IPV4Address::setAddress(const char *host) + if(ipaddr) + delete[] ipaddr; + ipaddr = new struct in_addr[1]; +- memset((void *)&ipaddr[0], 0, sizeof(ipaddr)); ++ memset((void *)&ipaddr[0], 0, sizeof(struct in_addr)); + return; + } + +@@ -498,7 +498,7 @@ IPV6Address::IPV6Address(const IPV6Validator +*_validator) + : 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) + if(ipaddr) + delete[] ipaddr; + ipaddr = new struct in6_addr[1]; +- memset((void *)&ipaddr[0], 0, sizeof(ipaddr)); ++ memset((void *)&ipaddr[0], 0, sizeof(struct in6_addr)); + return; + } + +@@ -796,7 +796,7 @@ void IPV6Address::setAddress(const char *host) + if(ipaddr) + delete[] ipaddr; + ipaddr = new struct in6_addr[1]; +- memset((void *)&ipaddr[0], 0, sizeof(ipaddr)); ++ memset((void *)&ipaddr[0], 0, sizeof(struct in6_addr)); + return; + } diff --git a/dev-libs/ucommon/ucommon-5.2.2-r1.ebuild b/dev-libs/ucommon/ucommon-5.2.2-r2.ebuild index 6808a553d4b6..e5f86985ce49 100644 --- a/dev-libs/ucommon/ucommon-5.2.2-r1.ebuild +++ b/dev-libs/ucommon/ucommon-5.2.2-r2.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/ucommon/ucommon-5.2.2-r1.ebuild,v 1.1 2012/06/14 16:44:43 maksbotan Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-libs/ucommon/ucommon-5.2.2-r2.ebuild,v 1.1 2012/08/19 21:22:42 qnikst Exp $ EAPI="4" |