summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Beierlein <tomjbe@gentoo.org>2010-10-03 14:51:04 +0000
committerThomas Beierlein <tomjbe@gentoo.org>2010-10-03 14:51:04 +0000
commit0fe3d26369c832f9bbbd7aba1f314b7c86d97698 (patch)
tree02d05e877405dce20cd47b366c125071277ecb14 /sci-electronics
parentAdd ~alpha/~ia64/~sparc wrt #337632 (diff)
downloadhistorical-0fe3d26369c832f9bbbd7aba1f314b7c86d97698.tar.gz
historical-0fe3d26369c832f9bbbd7aba1f314b7c86d97698.tar.bz2
historical-0fe3d26369c832f9bbbd7aba1f314b7c86d97698.zip
Fix potential buffer overflow (bug #339541). Thanks Diego for reporting.
Package-Manager: portage-2.1.9.13/cvs/Linux x86_64
Diffstat (limited to 'sci-electronics')
-rw-r--r--sci-electronics/ng-spice-rework/ChangeLog6
-rw-r--r--sci-electronics/ng-spice-rework/Manifest14
-rw-r--r--sci-electronics/ng-spice-rework/ng-spice-rework-21.ebuild7
3 files changed, 13 insertions, 14 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/Manifest b/sci-electronics/ng-spice-rework/Manifest
index 5e4664ceb3eb..146578afb58b 100644
--- a/sci-electronics/ng-spice-rework/Manifest
+++ b/sci-electronics/ng-spice-rework/Manifest
@@ -1,6 +1,3 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
AUX ng-spice-rework-18-nostrip.patch 1043 RMD160 26a89bfd5dc485fc3a1040d04690bee8d1745cea SHA1 5976ae5cd0bbe90c63c7b8d06d52617c86fc37a4 SHA256 a59ec65aef218ba32dc392531d5ec7568bd19b9b643a733752e87749ce207e30
AUX ng-spice-rework-18-src_makefile.patch 955 RMD160 dcc58a27fa58a0d6efc2523c46d62e32ffe52a3c SHA1 82cd4f457c5b86d8bf2614f42d38c444a7c453ce SHA256 601f63cf6b64a2fa0d76dae28aa11ef2d6930d5a972dfa71c42486466b500854
AUX ng-spice-rework-21-nostrip.patch 986 RMD160 ca7283181dc8084aaeb651b0b7069737dd3ace0a SHA1 bec0d2148c7ac388667d4213bb5c2ae8667a7021 SHA256 9f725feb74569bf9e41947ce5297138debed160b3a400efe68a473a7a7db3c4b
@@ -15,14 +12,7 @@ DIST ng-spice-rework-18.tar.gz 7061554 RMD160 e123c97060ce427ff11e6859b61dbd471e
DIST ng-spice-rework-21.tar.gz 5760859 RMD160 f48bc6549a08cc9c3e0886fd4e09ff46debf86dc SHA1 4a66885b0de2333c0d07cefc6af41b557c46ffde SHA256 450ad25f236d45394aaa9c727a2894bf65f263fda0f7b85e47feeb360675bbc2
EBUILD ng-spice-rework-18-r1.ebuild 3088 RMD160 8559f2d40b6970603233f5f19d148f60bc748e2e SHA1 9d5d212578ced22ca94732d27030c4705c652cb1 SHA256 0c503967a0d63fc492286e3157a8919ea5523205525cfe91f20f8b8cd922eaa4
EBUILD ng-spice-rework-18.ebuild 3030 RMD160 ab3c27f76b02bfb61ae2f3ce47b9fb9d00fa13a3 SHA1 a6273bf40261cf7f4b76f3e83f2331b54f56acc4 SHA256 57aa9369bbd073e841b900d3a85229035b465fa19897c6110ae0d2d0a467bc28
-EBUILD ng-spice-rework-21.ebuild 2991 RMD160 eb043dd7a60f4080482200fb20fdfc8e1ef334a7 SHA1 0a7df72d56b8b994d04c8f443caa386701d855ba SHA256 ac0bacfc092de9292cf66063fc15012cf1272c83075c9a462b31952d58bf1f51
+EBUILD ng-spice-rework-21.ebuild 3136 RMD160 128e42cfd05708de755aacc561d09258da292d2b SHA1 3dcc2f1cf0936a8849f4b0471cf7d570d7eb1c6d SHA256 f789ed11b5036c102b70ca6cd7850c2bcbce110d2614d14454a2d3d65c8f565a
EBUILD ng-spice-rework-9999.ebuild 1806 RMD160 06408de316ac3e95bc4218151c48130a7dd97b21 SHA1 5c0c771952e39442bf6a0821f460f952f8afd886 SHA256 1c0ba4b91c24041caa07383b2d0be7657ed1454d259187e59c66a77b7ea30e15
-MISC ChangeLog 4416 RMD160 3656cea3e1d907c7d3f0066e3dbcec8cc5a10abd SHA1 fe098ca02b246f8af909ffc7469a42591b0d0eb5 SHA256 1ff13ca0e5163dd57b86432fd5859c581264426a11b2c712f0a5108a7b5b5313
+MISC ChangeLog 4547 RMD160 bafedba370b8809b0be51b07fb165a061a83e97c SHA1 2632ba7e5febc1825fd2bcf59b765e425de12f7f SHA256 5f2d154aac9c23c3d010347d2295324158ddc0f8f4db3d3a9668b3ec90d0f5cb
MISC metadata.xml 361 RMD160 6a0aea151a531b83b4df35307363793de698bc16 SHA1 3e5c1bc6ec70c652533c17535a248e06577be702 SHA256 0cb29147232be6569c365b9e694962c7b606a81ce4c4ce7b404a937378a1d0b8
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.15 (GNU/Linux)
-
-iEYEARECAAYFAkwjNysACgkQgAnW8HDreRaeaACdFboWXV8GrapRdiyhiZYZFDXY
-8fsAn3hH+TLmSP2yLA2GibDUaimAzqKe
-=VpFg
------END PGP SIGNATURE-----
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}"