diff options
author | Alexis Ballier <aballier@gentoo.org> | 2012-11-27 00:04:49 +0000 |
---|---|---|
committer | Alexis Ballier <aballier@gentoo.org> | 2012-11-27 00:04:49 +0000 |
commit | 1711526372c265e82e92e6802f20f0e6b6da3cfd (patch) | |
tree | 4b595f0402d3902ccee0bd19de34f36ddcf0ec15 /media-plugins | |
parent | shorten description and use longdescription, by Dustin Polke, bug #356821 (diff) | |
download | gentoo-2-1711526372c265e82e92e6802f20f0e6b6da3cfd.tar.gz gentoo-2-1711526372c265e82e92e6802f20f0e6b6da3cfd.tar.bz2 gentoo-2-1711526372c265e82e92e6802f20f0e6b6da3cfd.zip |
Fix double free by Vinycius Maia, bug #418241
(Portage version: 2.2.0_alpha142/cvs/Linux x86_64, signed Manifest commit with key 160F534A)
Diffstat (limited to 'media-plugins')
3 files changed, 67 insertions, 1 deletions
diff --git a/media-plugins/caps-plugins/ChangeLog b/media-plugins/caps-plugins/ChangeLog index 349135eec025..c5c1130fb69c 100644 --- a/media-plugins/caps-plugins/ChangeLog +++ b/media-plugins/caps-plugins/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for media-plugins/caps-plugins # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-plugins/caps-plugins/ChangeLog,v 1.31 2012/11/26 23:58:09 aballier Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-plugins/caps-plugins/ChangeLog,v 1.32 2012/11/27 00:04:49 aballier Exp $ + +*caps-plugins-0.4.5-r1 (27 Nov 2012) + + 27 Nov 2012; Alexis Ballier <aballier@gentoo.org> + +caps-plugins-0.4.5-r1.ebuild, + +files/caps-plugins-0.4.5-double-free-corruption.patch: + Fix double free by Vinycius Maia, bug #418241 26 Nov 2012; Alexis Ballier <aballier@gentoo.org> caps-plugins-0.4.4.ebuild, caps-plugins-0.4.5.ebuild, metadata.xml: diff --git a/media-plugins/caps-plugins/caps-plugins-0.4.5-r1.ebuild b/media-plugins/caps-plugins/caps-plugins-0.4.5-r1.ebuild new file mode 100644 index 000000000000..e100a074080a --- /dev/null +++ b/media-plugins/caps-plugins/caps-plugins-0.4.5-r1.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-plugins/caps-plugins/caps-plugins-0.4.5-r1.ebuild,v 1.1 2012/11/27 00:04:49 aballier Exp $ + +EAPI=4 + +inherit eutils toolchain-funcs multilib + +IUSE="" +MY_P=caps-${PV} + +DESCRIPTION="The CAPS Audio Plugin Suite - LADSPA plugin suite" +HOMEPAGE="http://quitte.de/dsp/caps.html" +SRC_URI="http://quitte.de/dsp/caps_${PV}.tar.gz" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +DEPEND="media-libs/ladspa-sdk" +RDEPEND="" + +S="${WORKDIR}/${MY_P}" + +src_prepare() { + epatch "${FILESDIR}/${P}-double-free-corruption.patch" +} + +src_compile() { + emake CFLAGS="${CXXFLAGS} -fPIC -DPIC" _LDFLAGS="-nostartfiles -shared ${LDFLAGS}" CC="$(tc-getCXX)" || die +} + +src_install() { + dodoc README CHANGES + dohtml caps.html + + insinto /usr/$(get_libdir)/ladspa + insopts -m0755 + doins *.so + + insinto /usr/share/ladspa/rdf + insopts -m0644 + doins *.rdf +} diff --git a/media-plugins/caps-plugins/files/caps-plugins-0.4.5-double-free-corruption.patch b/media-plugins/caps-plugins/files/caps-plugins-0.4.5-double-free-corruption.patch new file mode 100644 index 000000000000..a85e41cd1f10 --- /dev/null +++ b/media-plugins/caps-plugins/files/caps-plugins-0.4.5-double-free-corruption.patch @@ -0,0 +1,16 @@ +https://bugs.gentoo.org/show_bug.cgi?id=418241 + +--- interface.cc.orig 2012-08-11 07:35:45.723235289 -0300 ++++ interface.cc 2012-08-11 07:36:46.656565620 -0300 +@@ -128,8 +128,10 @@ + __attribute__ ((destructor)) + void _fini() + { +- for (ulong i = 0; i < N; ++i) ++ for (ulong i = 0; i < N; ++i) { + delete descriptors[i]; ++ descriptors[i] = NULL; ++ } + } + + /* /////////////////////////////////////////////////////////////////////// */ |