diff options
author | Christoph Mende <angelos@gentoo.org> | 2011-05-07 17:17:23 +0000 |
---|---|---|
committer | Christoph Mende <angelos@gentoo.org> | 2011-05-07 17:17:23 +0000 |
commit | 14a2b560decce55de86c622f9d63f3b55b0f3404 (patch) | |
tree | 6dc02ecacf741095cbfb0071ac1e866b1c5d8753 | |
parent | Fix possible overflows (bug #337527) (diff) | |
download | gentoo-2-14a2b560decce55de86c622f9d63f3b55b0f3404.tar.gz gentoo-2-14a2b560decce55de86c622f9d63f3b55b0f3404.tar.bz2 gentoo-2-14a2b560decce55de86c622f9d63f3b55b0f3404.zip |
Fix possible overflow (bug #337849)
(Portage version: 2.2.0_alpha31/cvs/Linux x86_64)
-rw-r--r-- | media-sound/takcd/ChangeLog | 8 | ||||
-rw-r--r-- | media-sound/takcd/files/takcd-0.10-overflow.patch | 13 | ||||
-rw-r--r-- | media-sound/takcd/takcd-0.10.ebuild | 7 |
3 files changed, 23 insertions, 5 deletions
diff --git a/media-sound/takcd/ChangeLog b/media-sound/takcd/ChangeLog index 0e3e7fcc4ee6..637ebc21de56 100644 --- a/media-sound/takcd/ChangeLog +++ b/media-sound/takcd/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for media-sound/takcd -# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-sound/takcd/ChangeLog,v 1.16 2010/12/03 00:33:13 flameeyes Exp $ +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/media-sound/takcd/ChangeLog,v 1.17 2011/05/07 17:17:23 angelos Exp $ + + 07 May 2011; Christoph Mende <angelos@gentoo.org> takcd-0.10.ebuild, + +files/takcd-0.10-overflow.patch: + Fix possible overflow (bug #337849) 03 Dec 2010; Diego E. Pettenò <flameeyes@gentoo.org> takcd-0.10.ebuild: Rebuild with modern autotools. diff --git a/media-sound/takcd/files/takcd-0.10-overflow.patch b/media-sound/takcd/files/takcd-0.10-overflow.patch new file mode 100644 index 000000000000..c3e7e16d286a --- /dev/null +++ b/media-sound/takcd/files/takcd-0.10-overflow.patch @@ -0,0 +1,13 @@ +diff --git a/config_api.c b/config_api.c +index b62e41c..2b6a6cf 100644 +--- a/config_api.c ++++ b/config_api.c +@@ -41,7 +41,7 @@ static void on_change(config_t *conf) + int config_open(config_t *conf, const char *filename, int flag) + { + struct stat st; +- char mode[2]; ++ char mode[3]; + + /* set fopen() mode or return if flag is not valid */ + if (flag == C_WRITE) { diff --git a/media-sound/takcd/takcd-0.10.ebuild b/media-sound/takcd/takcd-0.10.ebuild index 3f54a39c17d8..0189942608fb 100644 --- a/media-sound/takcd/takcd-0.10.ebuild +++ b/media-sound/takcd/takcd-0.10.ebuild @@ -1,8 +1,8 @@ -# Copyright 1999-2010 Gentoo Foundation +# Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-sound/takcd/takcd-0.10.ebuild,v 1.15 2010/12/03 00:33:13 flameeyes Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-sound/takcd/takcd-0.10.ebuild,v 1.16 2011/05/07 17:17:23 angelos Exp $ -inherit autotools +inherit eutils autotools DESCRIPTION="Command line CD player" HOMEPAGE="http://bard.sytes.net/takcd/" @@ -16,6 +16,7 @@ IUSE="" src_unpack() { unpack ${A} cd "${S}" + epatch "${FILESDIR}"/${P}-overflow.patch eautoreconf } |