diff options
author | Christoph Mende <angelos@gentoo.org> | 2011-02-20 12:56:08 +0000 |
---|---|---|
committer | Christoph Mende <angelos@gentoo.org> | 2011-02-20 12:56:08 +0000 |
commit | ad7bed8fcbb1b3aa24a316d54a7acd674e76d36c (patch) | |
tree | 0163f1ba7defc883e1bf7d561113a0b5362ee04d /media-libs/libmpd | |
parent | old (diff) | |
download | gentoo-2-ad7bed8fcbb1b3aa24a316d54a7acd674e76d36c.tar.gz gentoo-2-ad7bed8fcbb1b3aa24a316d54a7acd674e76d36c.tar.bz2 gentoo-2-ad7bed8fcbb1b3aa24a316d54a7acd674e76d36c.zip |
Fixed overflow in mpd_newConnection (bug #340141)
(Portage version: 2.1.9.40/cvs/Linux x86_64, RepoMan options: --force)
Diffstat (limited to 'media-libs/libmpd')
-rw-r--r-- | media-libs/libmpd/ChangeLog | 8 | ||||
-rw-r--r-- | media-libs/libmpd/files/libmpd-0.20.0-overflow.patch | 13 | ||||
-rw-r--r-- | media-libs/libmpd/libmpd-0.20.0-r1.ebuild | 29 |
3 files changed, 49 insertions, 1 deletions
diff --git a/media-libs/libmpd/ChangeLog b/media-libs/libmpd/ChangeLog index f98ffe392308..fee63fabee23 100644 --- a/media-libs/libmpd/ChangeLog +++ b/media-libs/libmpd/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for media-libs/libmpd # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-libs/libmpd/ChangeLog,v 1.52 2011/02/17 13:52:38 hwoarang Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-libs/libmpd/ChangeLog,v 1.53 2011/02/20 12:56:08 angelos Exp $ + +*libmpd-0.20.0-r1 (20 Feb 2011) + + 20 Feb 2011; <angelos@gentoo.org> +libmpd-0.20.0-r1.ebuild, + +files/libmpd-0.20.0-overflow.patch: + Fixed overflow in mpd_newConnection (bug #340141) 17 Feb 2011; Markos Chandras <hwoarang@gentoo.org> libmpd-0.20.0.ebuild: Stable on amd64 wrt bug #325621 diff --git a/media-libs/libmpd/files/libmpd-0.20.0-overflow.patch b/media-libs/libmpd/files/libmpd-0.20.0-overflow.patch new file mode 100644 index 000000000000..b3b78673388d --- /dev/null +++ b/media-libs/libmpd/files/libmpd-0.20.0-overflow.patch @@ -0,0 +1,13 @@ +diff --git a/src/libmpdclient.c b/src/libmpdclient.c +index 3d526ca..3af9ad5 100644 +--- a/src/libmpdclient.c ++++ b/src/libmpdclient.c +@@ -436,7 +436,7 @@ static int mpd_connect_un(mpd_Connection * connection, + close(connection->sock); + connection->sock = 0; + +- snprintf(connection->errorStr,MPD_BUFFER_MAX_LENGTH, ++ snprintf(connection->errorStr,MPD_ERRORSTR_MAX_LENGTH, + "problems connecting to \"%s\": %s", + host, strerror(errno)); + connection->error = MPD_ERROR_CONNPORT; diff --git a/media-libs/libmpd/libmpd-0.20.0-r1.ebuild b/media-libs/libmpd/libmpd-0.20.0-r1.ebuild new file mode 100644 index 000000000000..f6d338896c83 --- /dev/null +++ b/media-libs/libmpd/libmpd-0.20.0-r1.ebuild @@ -0,0 +1,29 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-libs/libmpd/libmpd-0.20.0-r1.ebuild,v 1.1 2011/02/20 12:56:08 angelos Exp $ + +EAPI=2 + +inherit eutils + +DESCRIPTION="A library handling connections to a MPD server" +HOMEPAGE="http://gmpc.wikia.com/wiki/Libmpd" +SRC_URI="http://download.sarine.nl/Programs/gmpc/${PV}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~ppc ~ppc64 ~sparc ~x86 ~x86-interix ~amd64-linux ~x86-linux" +IUSE="" + +RDEPEND=">=dev-libs/glib-2.16:2" +DEPEND="${RDEPEND} + dev-util/pkgconfig" + +src_prepare() { + epatch "${FILESDIR}/${P}-overflow.patch" +} + +src_install() { + emake DESTDIR="${D}" install || die + dodoc AUTHORS ChangeLog NEWS README +} |