summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo Tupone <tupone@gentoo.org>2011-07-23 20:31:05 +0000
committerAlfredo Tupone <tupone@gentoo.org>2011-07-23 20:31:05 +0000
commit6d406aa4ab4f8300594d908611802170975d9a47 (patch)
treecb58d9ce046f433349d6bc020f03f31dd33350fb /games-rpg
parentDrop ppc/ppc64; bug #352794 (diff)
downloadgentoo-2-6d406aa4ab4f8300594d908611802170975d9a47.tar.gz
gentoo-2-6d406aa4ab4f8300594d908611802170975d9a47.tar.bz2
gentoo-2-6d406aa4ab4f8300594d908611802170975d9a47.zip
Fix buffer overflow. Bug #208327
(Portage version: 2.1.10.7/cvs/Linux i686)
Diffstat (limited to 'games-rpg')
-rw-r--r--games-rpg/openglad/ChangeLog8
-rw-r--r--games-rpg/openglad/files/openglad-0.98-ovfl.patch11
-rw-r--r--games-rpg/openglad/openglad-0.98.ebuild20
3 files changed, 26 insertions, 13 deletions
diff --git a/games-rpg/openglad/ChangeLog b/games-rpg/openglad/ChangeLog
index 0b82f5ec407b..ec9603e2259a 100644
--- a/games-rpg/openglad/ChangeLog
+++ b/games-rpg/openglad/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for games-rpg/openglad
-# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-rpg/openglad/ChangeLog,v 1.8 2008/04/30 23:45:33 nyhm Exp $
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-rpg/openglad/ChangeLog,v 1.9 2011/07/23 20:31:05 tupone Exp $
+
+ 23 Jul 2011; Tupone Alfredo <tupone@gentoo.org> openglad-0.98.ebuild,
+ +files/openglad-0.98-ovfl.patch:
+ Fix buffer overflow. Bug #208327 by Billy DeVincentis
30 Apr 2008; Tristan Heaven <nyhm@gentoo.org>
+files/openglad-0.98-gcc43.patch, openglad-0.98.ebuild:
diff --git a/games-rpg/openglad/files/openglad-0.98-ovfl.patch b/games-rpg/openglad/files/openglad-0.98-ovfl.patch
new file mode 100644
index 000000000000..14cd73cc53b0
--- /dev/null
+++ b/games-rpg/openglad/files/openglad-0.98-ovfl.patch
@@ -0,0 +1,11 @@
+--- src/screen.cpp.old 2011-07-23 21:35:34.385063301 +0200
++++ src/screen.cpp 2011-07-23 21:35:59.948063312 +0200
+@@ -2383,7 +2383,7 @@
+ short listsize;
+ short i;
+ walker * new_guy;
+- char newgrid[12] = "grid.pix"; // default grid
++ char newgrid[13] = "grid.pix"; // default grid
+ char new_scen_type; // read the scenario type
+ char oneline[80];
+ char numlines, tempwidth;
diff --git a/games-rpg/openglad/openglad-0.98.ebuild b/games-rpg/openglad/openglad-0.98.ebuild
index de44a708fc71..1f5907e47295 100644
--- a/games-rpg/openglad/openglad-0.98.ebuild
+++ b/games-rpg/openglad/openglad-0.98.ebuild
@@ -1,6 +1,7 @@
-# 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/games-rpg/openglad/openglad-0.98.ebuild,v 1.10 2008/04/30 23:45:33 nyhm Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-rpg/openglad/openglad-0.98.ebuild,v 1.11 2011/07/23 20:31:05 tupone Exp $
+EAPI=2
inherit eutils games
@@ -18,21 +19,18 @@ DEPEND="media-libs/sdl-mixer
media-libs/sdl-image
media-libs/libsdl"
-src_unpack() {
- unpack ${A}
- cd "${S}"
- epatch \
- "${FILESDIR}"/${PV}-gladpack.c.patch \
- "${FILESDIR}"/${P}-gcc43.patch
-}
+PATCHES=(
+ "${FILESDIR}"/${PV}-gladpack.c.patch
+ "${FILESDIR}"/${P}-gcc43.patch
+ "${FILESDIR}"/${P}-ovfl.patch
+)
-src_compile() {
+src_configure() {
egamesconf \
--prefix=/usr \
--bindir="${GAMES_BINDIR}" \
--datadir="${GAMES_DATADIR}/${PN}" \
|| die
- emake || die "emake failed"
}
src_install() {