diff options
author | Thomas Beierlein <tomjbe@gentoo.org> | 2010-10-03 14:51:04 +0000 |
---|---|---|
committer | Thomas Beierlein <tomjbe@gentoo.org> | 2010-10-03 14:51:04 +0000 |
commit | 9ea21e6c951c5189c2d8dde4d7e2e1d0f5d74d4e (patch) | |
tree | c242c7c5f0745dc9a2309705f90fc36b9d887d41 /sci-electronics | |
parent | Add ~alpha/~ia64/~sparc wrt #337632 (diff) | |
download | gentoo-2-9ea21e6c951c5189c2d8dde4d7e2e1d0f5d74d4e.tar.gz gentoo-2-9ea21e6c951c5189c2d8dde4d7e2e1d0f5d74d4e.tar.bz2 gentoo-2-9ea21e6c951c5189c2d8dde4d7e2e1d0f5d74d4e.zip |
Fix potential buffer overflow (bug #339541). Thanks Diego for reporting.
(Portage version: 2.1.9.13/cvs/Linux x86_64)
Diffstat (limited to 'sci-electronics')
-rw-r--r-- | sci-electronics/ng-spice-rework/ChangeLog | 6 | ||||
-rw-r--r-- | sci-electronics/ng-spice-rework/ng-spice-rework-21.ebuild | 7 |
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}" |