summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sci-electronics')
-rw-r--r--sci-electronics/ng-spice-rework/ChangeLog6
-rw-r--r--sci-electronics/ng-spice-rework/ng-spice-rework-21.ebuild7
2 files changed, 11 insertions, 2 deletions
diff --git a/sci-electronics/ng-spice-rework/ChangeLog b/sci-electronics/ng-spice-rework/ChangeLog
index af1ef976db29..a925456fab55 100644
--- a/sci-electronics/ng-spice-rework/ChangeLog
+++ b/sci-electronics/ng-spice-rework/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for sci-electronics/ng-spice-rework
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-electronics/ng-spice-rework/ChangeLog,v 1.19 2010/06/24 10:41:52 jlec Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-electronics/ng-spice-rework/ChangeLog,v 1.20 2010/10/03 14:51:04 tomjbe Exp $
+
+ 03 Oct 2010; Thomas Beierlein <tomjbe@gentoo.org>
+ ng-spice-rework-21.ebuild:
+ Fix potential buffer overflow (bug #339541).
*ng-spice-rework-21 (24 Jun 2010)
*ng-spice-rework-18-r1 (24 Jun 2010)
diff --git a/sci-electronics/ng-spice-rework/ng-spice-rework-21.ebuild b/sci-electronics/ng-spice-rework/ng-spice-rework-21.ebuild
index ace6c50bca8c..bd126263d1e6 100644
--- a/sci-electronics/ng-spice-rework/ng-spice-rework-21.ebuild
+++ b/sci-electronics/ng-spice-rework/ng-spice-rework-21.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sci-electronics/ng-spice-rework/ng-spice-rework-21.ebuild,v 1.1 2010/06/24 10:41:52 jlec Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-electronics/ng-spice-rework/ng-spice-rework-21.ebuild,v 1.2 2010/10/03 14:51:04 tomjbe Exp $
EAPI="3"
@@ -33,6 +33,11 @@ src_prepare() {
rm -rf xgraph
epatch "${FILESDIR}"/${P}-src_makefile.patch
sed -i -e 's/\-O2//' configure.in || die "sed failed"
+
+ # fix potential buffer overflow (bug 339541)
+ sed -i -e "s/fgets(buf, BSIZE_SP/fgets(buf, sizeof(buf)/g" \
+ src/frontend/misccoms.c || die
+
if use doc ; then
cp "${DISTDIR}"/Xspice_Users_Manual.pdf "${S}"
cp "${DISTDIR}"/XSpice_SoftwareDesignDoc_Sep92.pdf "${S}"