diff options
author | Thomas Beierlein <tomjbe@gentoo.org> | 2010-09-27 15:43:40 +0000 |
---|---|---|
committer | Thomas Beierlein <tomjbe@gentoo.org> | 2010-09-27 15:43:40 +0000 |
commit | cd43669ad8dec1ed3ab3a7cab5379b2b4ae3f3d7 (patch) | |
tree | b0e71ef571ec48698c9013393fdb39f2241d2f0d /sci-electronics/xnec2c | |
parent | Automated update of use.local.desc (diff) | |
download | gentoo-2-cd43669ad8dec1ed3ab3a7cab5379b2b4ae3f3d7.tar.gz gentoo-2-cd43669ad8dec1ed3ab3a7cab5379b2b4ae3f3d7.tar.bz2 gentoo-2-cd43669ad8dec1ed3ab3a7cab5379b2b4ae3f3d7.zip |
Fix buffer overflow (Bug 338905). Thanks Diego for reporting.
(Portage version: 2.1.8.3/cvs/Linux x86_64)
Diffstat (limited to 'sci-electronics/xnec2c')
-rw-r--r-- | sci-electronics/xnec2c/ChangeLog | 6 | ||||
-rw-r--r-- | sci-electronics/xnec2c/files/xnec2c-1.4-fortify.patch | 11 | ||||
-rw-r--r-- | sci-electronics/xnec2c/xnec2c-1.4.ebuild | 6 |
3 files changed, 20 insertions, 3 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/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 } |