summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sterrett <mr_bones_@gentoo.org>2010-01-14 22:33:53 +0000
committerMichael Sterrett <mr_bones_@gentoo.org>2010-01-14 22:33:53 +0000
commit1d18a3bda84f007090f874bc6af5438f87201e41 (patch)
tree113630940e6726b0147a48fe96fa2028cd098661
parentarm stable, bug #294958 (diff)
downloadgentoo-2-1d18a3bda84f007090f874bc6af5438f87201e41.tar.gz
gentoo-2-1d18a3bda84f007090f874bc6af5438f87201e41.tar.bz2
gentoo-2-1d18a3bda84f007090f874bc6af5438f87201e41.zip
fix buffer overflow (bug #301033)
(Portage version: 2.1.6.13/cvs/Linux i686)
-rw-r--r--games-puzzle/braincurses/ChangeLog8
-rw-r--r--games-puzzle/braincurses/braincurses-0.5b.ebuild9
2 files changed, 13 insertions, 4 deletions
diff --git a/games-puzzle/braincurses/ChangeLog b/games-puzzle/braincurses/ChangeLog
index 8f591c02846c..4f2d04f85ac5 100644
--- a/games-puzzle/braincurses/ChangeLog
+++ b/games-puzzle/braincurses/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for games-puzzle/braincurses
-# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-puzzle/braincurses/ChangeLog,v 1.9 2009/02/09 15:26:40 tupone Exp $
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-puzzle/braincurses/ChangeLog,v 1.10 2010/01/14 22:33:53 mr_bones_ Exp $
+
+ 14 Jan 2010; Michael Sterrett <mr_bones_@gentoo.org>
+ braincurses-0.5b.ebuild:
+ fix buffer overflow (bug #301033)
09 Feb 2009; Alfredo Tupone <tupone@gentoo.org>
+files/braincurses-0.5b-as-needed.patch, braincurses-0.5b.ebuild:
diff --git a/games-puzzle/braincurses/braincurses-0.5b.ebuild b/games-puzzle/braincurses/braincurses-0.5b.ebuild
index c3870f70ab40..1464fcd1db31 100644
--- a/games-puzzle/braincurses/braincurses-0.5b.ebuild
+++ b/games-puzzle/braincurses/braincurses-0.5b.ebuild
@@ -1,6 +1,6 @@
-# Copyright 1999-2009 Gentoo Foundation
+# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/games-puzzle/braincurses/braincurses-0.5b.ebuild,v 1.7 2009/02/09 15:26:40 tupone Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-puzzle/braincurses/braincurses-0.5b.ebuild,v 1.8 2010/01/14 22:33:53 mr_bones_ Exp $
EAPI=2
inherit eutils games
@@ -19,6 +19,11 @@ DEPEND=""
src_prepare() {
epatch "${FILESDIR}"/${P}-gcc43.patch \
"${FILESDIR}"/${P}-as-needed.patch
+ # fix buffer overflow (bug #301033)
+ sed -i \
+ -e 's/guessLabel\[2/guessLabel[3/' \
+ curses/windows.cpp \
+ || die 'sed failed'
}
src_install() {