diff options
author | Alfredo Tupone <tupone@gentoo.org> | 2010-11-08 10:34:40 +0000 |
---|---|---|
committer | Alfredo Tupone <tupone@gentoo.org> | 2010-11-08 10:34:40 +0000 |
commit | 45d17c8e2af2e94fdb4e23e674e00f48ee94862e (patch) | |
tree | 5cc4d254fb86e993cf1aa7ece16f12dd4460854b /games-puzzle/tint | |
parent | Move to virtual/jpeg (diff) | |
download | gentoo-2-45d17c8e2af2e94fdb4e23e674e00f48ee94862e.tar.gz gentoo-2-45d17c8e2af2e94fdb4e23e674e00f48ee94862e.tar.bz2 gentoo-2-45d17c8e2af2e94fdb4e23e674e00f48ee94862e.zip |
Fix overflow. Bug #337233
(Portage version: 2.1.8.3/cvs/Linux x86_64)
Diffstat (limited to 'games-puzzle/tint')
-rw-r--r-- | games-puzzle/tint/ChangeLog | 8 | ||||
-rw-r--r-- | games-puzzle/tint/files/tint-0.03b-ovflfix.patch | 20 | ||||
-rw-r--r-- | games-puzzle/tint/tint-0.03b.ebuild | 7 |
3 files changed, 31 insertions, 4 deletions
diff --git a/games-puzzle/tint/ChangeLog b/games-puzzle/tint/ChangeLog index 3cb56af2c639..0729cb972c05 100644 --- a/games-puzzle/tint/ChangeLog +++ b/games-puzzle/tint/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for games-puzzle/tint -# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/games-puzzle/tint/ChangeLog,v 1.15 2009/05/31 02:32:13 nyhm Exp $ +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/games-puzzle/tint/ChangeLog,v 1.16 2010/11/08 10:34:40 tupone Exp $ + + 08 Nov 2010; Alfredo Tupone <tupone@gentoo.org> tint-0.03b.ebuild, + +files/tint-0.03b-ovflfix.patch: + Fix overflow. Bug #337233 by flameeyes@gentoo.org 31 May 2009; Tristan Heaven <nyhm@gentoo.org> tint-0.03b.ebuild: Fix LICENSE: as-is -> BSD diff --git a/games-puzzle/tint/files/tint-0.03b-ovflfix.patch b/games-puzzle/tint/files/tint-0.03b-ovflfix.patch new file mode 100644 index 000000000000..2be95fde54dc --- /dev/null +++ b/games-puzzle/tint/files/tint-0.03b-ovflfix.patch @@ -0,0 +1,20 @@ +--- tint.c.old 2010-11-08 11:15:12.000000000 +0100 ++++ tint.c 2010-11-08 11:16:06.000000000 +0100 +@@ -365,7 +365,7 @@ + FILE *handle; + int i,j; + score_t scores[NUMSCORES]; +- char header[strlen (SCORE_HEADER)]; ++ char header[strlen(SCORE_HEADER) + 1]; + if (score == 0) return; /* No need saving this */ + for (i = 1; i < NUMSCORES; i++) + { +@@ -418,7 +418,7 @@ + FILE *handle; + int i,j,ch; + score_t scores[NUMSCORES]; +- char header[strlen (SCORE_HEADER)]; ++ char header[strlen(SCORE_HEADER) + 1]; + time_t tmp = 0; + if ((handle = fopen (scorefile,"r")) == NULL) + { diff --git a/games-puzzle/tint/tint-0.03b.ebuild b/games-puzzle/tint/tint-0.03b.ebuild index 3390ff3ae051..e50e88d6453b 100644 --- a/games-puzzle/tint/tint-0.03b.ebuild +++ b/games-puzzle/tint/tint-0.03b.ebuild @@ -1,6 +1,7 @@ -# 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/tint/tint-0.03b.ebuild,v 1.6 2009/05/31 02:32:13 nyhm Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-puzzle/tint/tint-0.03b.ebuild,v 1.7 2010/11/08 10:34:40 tupone Exp $ +EAPI=2 inherit eutils games @@ -16,6 +17,8 @@ IUSE="" DEPEND=">=sys-libs/ncurses-5.4-r1" +PATCHES=( "${FILESDIR}"/${P}-ovflfix.patch ) + src_compile() { emake \ STRIP=true \ |