diff options
author | Christoph Mende <angelos@gentoo.org> | 2011-05-07 17:12:16 +0000 |
---|---|---|
committer | Christoph Mende <angelos@gentoo.org> | 2011-05-07 17:12:16 +0000 |
commit | a20d41909e8e6272b5321936b603fb66f086aac6 (patch) | |
tree | 1da001f4bd462b938c5c323629b0c3490834f099 /net-misc/shout | |
parent | Fix typo (diff) | |
download | gentoo-2-a20d41909e8e6272b5321936b603fb66f086aac6.tar.gz gentoo-2-a20d41909e8e6272b5321936b603fb66f086aac6.tar.bz2 gentoo-2-a20d41909e8e6272b5321936b603fb66f086aac6.zip |
Fix possible overflows (bug #337527)
(Portage version: 2.2.0_alpha31/cvs/Linux x86_64)
Diffstat (limited to 'net-misc/shout')
-rw-r--r-- | net-misc/shout/ChangeLog | 8 | ||||
-rw-r--r-- | net-misc/shout/files/shout-0.8.0-overflow.patch | 26 | ||||
-rw-r--r-- | net-misc/shout/shout-0.8.0-r2.ebuild | 11 |
3 files changed, 38 insertions, 7 deletions
diff --git a/net-misc/shout/ChangeLog b/net-misc/shout/ChangeLog index b7826b5d20d5..cb726bff210c 100644 --- a/net-misc/shout/ChangeLog +++ b/net-misc/shout/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for net-misc/shout -# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/shout/ChangeLog,v 1.16 2008/12/19 19:04:16 aballier Exp $ +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/shout/ChangeLog,v 1.17 2011/05/07 17:12:16 angelos Exp $ + + 07 May 2011; Christoph Mende <angelos@gentoo.org> shout-0.8.0-r2.ebuild, + +files/shout-0.8.0-overflow.patch: + Fix possible overflows (bug #337527) 19 Dec 2008; Alexis Ballier <aballier@gentoo.org> +files/implicitdecls.patch, +files/ldflags.patch, shout-0.8.0-r2.ebuild: diff --git a/net-misc/shout/files/shout-0.8.0-overflow.patch b/net-misc/shout/files/shout-0.8.0-overflow.patch new file mode 100644 index 000000000000..a1292423ce4b --- /dev/null +++ b/net-misc/shout/files/shout-0.8.0-overflow.patch @@ -0,0 +1,26 @@ +diff --git a/shout.c b/shout.c +index 0a1bded..00bae8d 100644 +--- a/shout.c ++++ b/shout.c +@@ -441,7 +441,7 @@ post_config () + perror ("fopen"); + px_shutdown (44); + } +- my_snprintf (pid, BUFSIZE, "%d\n", (int) getpid ()); ++ my_snprintf (pid, 30, "%d\n", (int) getpid ()); + fputs (pid, fp); + fclose (fp); + } +diff --git a/sock.c b/sock.c +index 4a67c00..3b4e539 100644 +--- a/sock.c ++++ b/sock.c +@@ -81,7 +81,7 @@ sock_connect (char *hostname, int port) + sock_close (sockfd); + return -1; + } +- memcpy (&server.sin_addr, &sin.sin_addr, sizeof (sin)); ++ memcpy (&server.sin_addr, &sin.sin_addr, sizeof (sin.sin_addr)); + } else { + host = gethostbyname (hostname); + if (host == NULL) { diff --git a/net-misc/shout/shout-0.8.0-r2.ebuild b/net-misc/shout/shout-0.8.0-r2.ebuild index 36c2cf937b9d..4fec267f96e8 100644 --- a/net-misc/shout/shout-0.8.0-r2.ebuild +++ b/net-misc/shout/shout-0.8.0-r2.ebuild @@ -1,6 +1,6 @@ -# Copyright 1999-2008 Gentoo Foundation +# Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/shout/shout-0.8.0-r2.ebuild,v 1.7 2008/12/19 19:04:16 aballier Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/shout/shout-0.8.0-r2.ebuild,v 1.8 2011/05/07 17:12:16 angelos Exp $ inherit eutils toolchain-funcs @@ -16,9 +16,10 @@ IUSE="" src_unpack() { unpack ${A} cd "${S}" - epatch "${FILESDIR}"/variables.diff - epatch "${FILESDIR}"/ldflags.patch - epatch "${FILESDIR}"/implicitdecls.patch + epatch "${FILESDIR}"/variables.diff \ + "${FILESDIR}"/ldflags.patch \ + "${FILESDIR}"/implicitdecls.patch \ + "${FILESDIR}"/${P}-overflow.patch rm -f sock.o sed -i -e "s/-ansi//" configure } |