summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Beierlein <tomjbe@gentoo.org>2010-09-29 18:45:06 +0000
committerThomas Beierlein <tomjbe@gentoo.org>2010-09-29 18:45:06 +0000
commit8915b664b6facebf66f458fe2386eb85cd1002a2 (patch)
treefa7afb8810da592e3a04cbd2365492cf866b16c2 /sci-astronomy
parentVersion bump. Fixes CVE-2010-3077, bug 336319. (diff)
downloadgentoo-2-8915b664b6facebf66f458fe2386eb85cd1002a2.tar.gz
gentoo-2-8915b664b6facebf66f458fe2386eb85cd1002a2.tar.bz2
gentoo-2-8915b664b6facebf66f458fe2386eb85cd1002a2.zip
Fix buffer overflow and index out of bounds problem. (Bug 339109). Thanks Diego for reporting.
(Portage version: 2.1.8.3/cvs/Linux x86_64)
Diffstat (limited to 'sci-astronomy')
-rw-r--r--sci-astronomy/predict/ChangeLog8
-rw-r--r--sci-astronomy/predict/predict-2.2.3.ebuild11
2 files changed, 15 insertions, 4 deletions
diff --git a/sci-astronomy/predict/ChangeLog b/sci-astronomy/predict/ChangeLog
index 9ac7bb031f77..c9d882405d65 100644
--- a/sci-astronomy/predict/ChangeLog
+++ b/sci-astronomy/predict/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for sci-astronomy/predict
-# Copyright 2002-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-astronomy/predict/ChangeLog,v 1.12 2009/02/23 18:31:04 bicatali Exp $
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sci-astronomy/predict/ChangeLog,v 1.13 2010/09/29 18:45:06 tomjbe Exp $
+
+ 29 Sep 2010; Thomas Beierlein <tomjbe@gentoo.org> predict-2.2.3.ebuild:
+ Fix buffer overflow and index out of bounds problem. (Bug 339109). Thanks
+ Diego for reporting.
23 Feb 2009; Sébastien Fabbro <bicatali@gentoo.org> predict-2.2.3.ebuild:
Now propagate LDFLAGS, respect as-needed, and simplified/modernized ebuild
diff --git a/sci-astronomy/predict/predict-2.2.3.ebuild b/sci-astronomy/predict/predict-2.2.3.ebuild
index 9f24708adcda..7db04c880caf 100644
--- a/sci-astronomy/predict/predict-2.2.3.ebuild
+++ b/sci-astronomy/predict/predict-2.2.3.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/sci-astronomy/predict/predict-2.2.3.ebuild,v 1.5 2009/02/23 18:31:04 bicatali Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-astronomy/predict/predict-2.2.3.ebuild,v 1.6 2010/09/29 18:45:06 tomjbe Exp $
inherit toolchain-funcs eutils
@@ -22,6 +22,13 @@ src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/${P}-xforms.patch
+ # fix for buffer overflow (Bug #339109)
+ sed -i -e "s/netport\[6\]/netport\[7\]/g" predict.c || die
+ # fix some further array out of bounds errors
+ sed -i -e "s/satname\[ 26/satname\[ 25/g" \
+ clients/gsat-1.1.0/src/db.c || die
+ sed -i -e "s/satname\[ 26/satname\[ 25/g" \
+ clients/gsat-1.1.0/src/comms.c || die
}
src_compile() {