From 1d18a3bda84f007090f874bc6af5438f87201e41 Mon Sep 17 00:00:00 2001 From: Michael Sterrett Date: Thu, 14 Jan 2010 22:33:53 +0000 Subject: fix buffer overflow (bug #301033) (Portage version: 2.1.6.13/cvs/Linux i686) --- games-puzzle/braincurses/ChangeLog | 8 ++++++-- games-puzzle/braincurses/braincurses-0.5b.ebuild | 9 +++++++-- 2 files changed, 13 insertions(+), 4 deletions(-) (limited to 'games-puzzle/braincurses') 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 + braincurses-0.5b.ebuild: + fix buffer overflow (bug #301033) 09 Feb 2009; Alfredo Tupone +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() { -- cgit v1.2.3-65-gdbad