summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Beierlein <tomjbe@gentoo.org>2010-09-27 15:43:40 +0000
committerThomas Beierlein <tomjbe@gentoo.org>2010-09-27 15:43:40 +0000
commit67babcdd616460ee5479200c11570267e24be7e4 (patch)
tree5f9a38b70449274b695267d102a9a6e27e752834 /sci-electronics/xnec2c
parentAutomated update of use.local.desc (diff)
downloadhistorical-67babcdd616460ee5479200c11570267e24be7e4.tar.gz
historical-67babcdd616460ee5479200c11570267e24be7e4.tar.bz2
historical-67babcdd616460ee5479200c11570267e24be7e4.zip
Fix buffer overflow (Bug 338905). Thanks Diego for reporting.
Package-Manager: portage-2.1.8.3/cvs/Linux x86_64
Diffstat (limited to 'sci-electronics/xnec2c')
-rw-r--r--sci-electronics/xnec2c/ChangeLog6
-rw-r--r--sci-electronics/xnec2c/Manifest5
-rw-r--r--sci-electronics/xnec2c/files/xnec2c-1.4-fortify.patch11
-rw-r--r--sci-electronics/xnec2c/xnec2c-1.4.ebuild6
4 files changed, 23 insertions, 5 deletions
diff --git a/sci-electronics/xnec2c/ChangeLog b/sci-electronics/xnec2c/ChangeLog
index cfbe327f8188..486fbabb64fd 100644
--- a/sci-electronics/xnec2c/ChangeLog
+++ b/sci-electronics/xnec2c/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for sci-electronics/xnec2c
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-electronics/xnec2c/ChangeLog,v 1.1 2010/08/25 17:43:39 tomjbe Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-electronics/xnec2c/ChangeLog,v 1.2 2010/09/27 15:43:40 tomjbe Exp $
+
+ 27 Sep 2010; Thomas Beierlein <tomjbe@gentoo.org> xnec2c-1.4.ebuild,
+ +files/xnec2c-1.4-fortify.patch:
+ Fix buffer overflow (Bug 338905). Thanks Diego for reporting.
25 Aug 2010; Thomas Beierlein <tomjbe@gentoo.org> +xnec2c-1.4.ebuild,
+metadata.xml:
diff --git a/sci-electronics/xnec2c/Manifest b/sci-electronics/xnec2c/Manifest
index 71c1902118ae..d4d27e7eea74 100644
--- a/sci-electronics/xnec2c/Manifest
+++ b/sci-electronics/xnec2c/Manifest
@@ -1,4 +1,5 @@
+AUX xnec2c-1.4-fortify.patch 331 RMD160 d46f59d069c41e743d9c6fc8c2af980c2de1812f SHA1 be2aa743e2f58a40797a04a42dab1df9a93b475b SHA256 c6e4800c880e8902d8c68e80750a5f2e67e1b7d08e0c6473cf602723ff4131f4
DIST xnec2c-1.4.tar.bz2 560130 RMD160 1a267333938df5768e2d440a26905269af916742 SHA1 85336f6d96dec909a6771f3d7ea278c6970466e1 SHA256 66265838daae23b6ae3000f9d2d5cbc5d0f0f7a77dbe5708544b2e79e38fa751
-EBUILD xnec2c-1.4.ebuild 888 RMD160 ee95a5312821ecb10b9c0d95264cbc76554642a0 SHA1 b926d887c12f90dd26c747de0b3bd894f7e38df2 SHA256 8fa0d25a2ac01c8beec14fc46e9227208121d5153d27385bc2b46f73c85a5918
-MISC ChangeLog 954 RMD160 db87188bfe031e0c0f9f50c0479e77e5a0e7e2b2 SHA1 a56e3ee8ecfedc3f12a9e8727035cc6c1462540d SHA256 258161dbddc9e34b4e14b4dfbc27b97353ef765780d02c04f27865b3f9eaa08a
+EBUILD xnec2c-1.4.ebuild 937 RMD160 7cdc2a75c69436841a8b533d6bc20dff38e143b8 SHA1 64c554213fd15b7719fe4ef8a8184e845ba0ba4d SHA256 de0f66586caf59f681a7b86d6621e77649e83b939f484ba97ba2b798cd09ee5d
+MISC ChangeLog 1125 RMD160 826ca0f493487d786ed4ab44d88b73444a52a3ed SHA1 0c8a89fcebad210226af06158c5be3c368dad095 SHA256 b236bdd4061992fbf9f15114144c26351f9cb59b704d7764092025afbe2116c6
MISC metadata.xml 1391 RMD160 2b0f8b9b990ad556aafdde0e7fef7c5bf45c6bb2 SHA1 2f0bde8a7ad1979876914c93161a37835626ffc6 SHA256 200ed2065aff1ebac0f24fbf818adf06aceac4adc9f100dcefc255ab0ea21644
diff --git a/sci-electronics/xnec2c/files/xnec2c-1.4-fortify.patch b/sci-electronics/xnec2c/files/xnec2c-1.4-fortify.patch
new file mode 100644
index 000000000000..17df66d06f71
--- /dev/null
+++ b/sci-electronics/xnec2c/files/xnec2c-1.4-fortify.patch
@@ -0,0 +1,11 @@
+--- src/draw_structure.c.orig 2010-09-27 15:29:42.000000000 +0000
++++ src/draw_structure.c 2010-09-27 15:29:48.000000000 +0000
+@@ -792,7 +792,7 @@
+ isFlagSet(DRAW_CHARGES) ||
+ isFlagSet(DRAW_GAIN) )
+ {
+- char txt[8];
++ char txt[9];
+
+ if( isFlagSet(ENABLE_RDPAT) && (calc_data.fstep >=0) )
+ snprintf( txt, 8, "%7.2f",
diff --git a/sci-electronics/xnec2c/xnec2c-1.4.ebuild b/sci-electronics/xnec2c/xnec2c-1.4.ebuild
index b43cefc59feb..c144bc0471d3 100644
--- a/sci-electronics/xnec2c/xnec2c-1.4.ebuild
+++ b/sci-electronics/xnec2c/xnec2c-1.4.ebuild
@@ -1,10 +1,10 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sci-electronics/xnec2c/xnec2c-1.4.ebuild,v 1.1 2010/08/25 17:43:39 tomjbe Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-electronics/xnec2c/xnec2c-1.4.ebuild,v 1.2 2010/09/27 15:43:40 tomjbe Exp $
EAPI="2"
-inherit autotools
+inherit autotools eutils
DESCRIPTION="A GTK+ graphical interactive version of nec2c."
HOMEPAGE="http://5b4az.chronos.org.uk/pages/nec2.html"
@@ -23,6 +23,8 @@ DEPEND="${RDEPEND}
sys-devel/gettext"
src_prepare() {
+ epatch "${FILESDIR}"/${P}-fortify.patch
+
glib-gettextize --force --copy || die
eautoreconf
}