diff options
author | Thomas Beierlein <tomjbe@gentoo.org> | 2010-09-29 18:45:06 +0000 |
---|---|---|
committer | Thomas Beierlein <tomjbe@gentoo.org> | 2010-09-29 18:45:06 +0000 |
commit | b72dc8171bf0313e2b7bc41a73dc19272d1ac49b (patch) | |
tree | f5557a6907aa30b0856f19a1533a1b33738d0525 /sci-astronomy/predict/predict-2.2.3.ebuild | |
parent | Version bump. Fixes CVE-2010-3077, bug 336319. (diff) | |
download | historical-b72dc8171bf0313e2b7bc41a73dc19272d1ac49b.tar.gz historical-b72dc8171bf0313e2b7bc41a73dc19272d1ac49b.tar.bz2 historical-b72dc8171bf0313e2b7bc41a73dc19272d1ac49b.zip |
Fix buffer overflow and index out of bounds problem. (Bug 339109). Thanks Diego for reporting.
Package-Manager: portage-2.1.8.3/cvs/Linux x86_64
Diffstat (limited to 'sci-astronomy/predict/predict-2.2.3.ebuild')
-rw-r--r-- | sci-astronomy/predict/predict-2.2.3.ebuild | 11 |
1 files changed, 9 insertions, 2 deletions
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() { |