diff options
author | Thomas Beierlein <tomjbe@gentoo.org> | 2010-10-03 14:39:52 +0000 |
---|---|---|
committer | Thomas Beierlein <tomjbe@gentoo.org> | 2010-10-03 14:39:52 +0000 |
commit | 216c75070be28f199a3bf1d4b578cc618d8888ca (patch) | |
tree | 71d856295076738d1e05c0d9baea1e01de448cab /sci-electronics/spice | |
parent | alpha stable (diff) | |
download | gentoo-2-216c75070be28f199a3bf1d4b578cc618d8888ca.tar.gz gentoo-2-216c75070be28f199a3bf1d4b578cc618d8888ca.tar.bz2 gentoo-2-216c75070be28f199a3bf1d4b578cc618d8888ca.zip |
Fix potential buffer overflow (bug #339539). Thanks for reporting Diego.
(Portage version: 2.1.9.13/cvs/Linux x86_64)
Diffstat (limited to 'sci-electronics/spice')
-rw-r--r-- | sci-electronics/spice/ChangeLog | 5 | ||||
-rw-r--r-- | sci-electronics/spice/spice-3.5.5-r1.ebuild | 10 |
2 files changed, 11 insertions, 4 deletions
diff --git a/sci-electronics/spice/ChangeLog b/sci-electronics/spice/ChangeLog index 72f6bbc8961d..6f247b8e14c6 100644 --- a/sci-electronics/spice/ChangeLog +++ b/sci-electronics/spice/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for sci-electronics/spice # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sci-electronics/spice/ChangeLog,v 1.12 2010/07/04 06:32:18 tomjbe Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-electronics/spice/ChangeLog,v 1.13 2010/10/03 14:39:52 tomjbe Exp $ + + 03 Oct 2010; Thomas Beierlein <tomjbe@gentoo.org> spice-3.5.5-r1.ebuild: + Fix potential buffer overflow (bug #339539). 04 Jul 2010; Thomas Beierlein <tomjbe@gentoo.org> spice-3.5.5-r1.ebuild: fix for default editor (see bug #294766) diff --git a/sci-electronics/spice/spice-3.5.5-r1.ebuild b/sci-electronics/spice/spice-3.5.5-r1.ebuild index 698ab03c9edc..f708de7df8f2 100644 --- a/sci-electronics/spice/spice-3.5.5-r1.ebuild +++ b/sci-electronics/spice/spice-3.5.5-r1.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/spice/spice-3.5.5-r1.ebuild,v 1.2 2010/07/04 06:32:18 tomjbe Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-electronics/spice/spice-3.5.5-r1.ebuild,v 1.3 2010/10/03 14:39:52 tomjbe Exp $ inherit eutils flag-o-matic multilib @@ -40,9 +40,13 @@ src_unpack() { -e "s:SPICE_DIR)/lib:SPICE_DIR)/$(get_libdir)/spice:g" \ -e "s:/usr/local/spice:/usr:g" \ -e "s:/X11R6::" \ - conf/linux - sed -i -e "s:head -1:head -n 1:" util/build + conf/linux || die + sed -i -e "s:head -1:head -n 1:" util/build || die epatch "${FILESDIR}"/${P}-gcc-4.1.patch + + # fix possible buffer overflow (bug #339539) + sed -i -e "s:fgets(buf, BSIZE_SP:fgets(buf, sizeof(buf):g" \ + src/lib/fte/misccoms.c || die } src_compile() { |