summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMart Raudsepp <leio@gentoo.org>2010-04-05 04:38:02 +0000
committerMart Raudsepp <leio@gentoo.org>2010-04-05 04:38:02 +0000
commit83894f1ce8483bfb6ea40ae23b4b2182fde17960 (patch)
tree4c9f7b0c2f6426b6b542ac6147d4c32163b1565e /media-plugins/gst-plugins-libpng
parentVersion bump to be in sync with the rest; no code changes (diff)
downloadgentoo-2-83894f1ce8483bfb6ea40ae23b4b2182fde17960.tar.gz
gentoo-2-83894f1ce8483bfb6ea40ae23b4b2182fde17960.tar.bz2
gentoo-2-83894f1ce8483bfb6ea40ae23b4b2182fde17960.zip
Version bump. Upstream libpng-1.4 compatibility
(Portage version: 2.2_rc60/cvs/Linux x86_64)
Diffstat (limited to 'media-plugins/gst-plugins-libpng')
-rw-r--r--media-plugins/gst-plugins-libpng/ChangeLog9
-rw-r--r--media-plugins/gst-plugins-libpng/files/gst-plugins-good-0.10.15-CVE-2009-1932.patch63
-rw-r--r--media-plugins/gst-plugins-libpng/gst-plugins-libpng-0.10.14-r1.ebuild21
-rw-r--r--media-plugins/gst-plugins-libpng/gst-plugins-libpng-0.10.21.ebuild14
4 files changed, 22 insertions, 85 deletions
diff --git a/media-plugins/gst-plugins-libpng/ChangeLog b/media-plugins/gst-plugins-libpng/ChangeLog
index fbd0da5ff18f..8c214ccc89a7 100644
--- a/media-plugins/gst-plugins-libpng/ChangeLog
+++ b/media-plugins/gst-plugins-libpng/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for media-plugins/gst-plugins-libpng
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-plugins/gst-plugins-libpng/ChangeLog,v 1.125 2010/03/24 20:06:30 fauli Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-plugins/gst-plugins-libpng/ChangeLog,v 1.126 2010/04/05 04:38:01 leio Exp $
+
+*gst-plugins-libpng-0.10.21 (05 Apr 2010)
+
+ 05 Apr 2010; Mart Raudsepp <leio@gentoo.org>
+ -files/gst-plugins-good-0.10.15-CVE-2009-1932.patch,
+ -gst-plugins-libpng-0.10.14-r1.ebuild, +gst-plugins-libpng-0.10.21.ebuild:
+ Version bump. Upstream libpng-1.4 compatibility
24 Mar 2010; Christian Faulhammer <fauli@gentoo.org>
gst-plugins-libpng-0.10.17.ebuild:
diff --git a/media-plugins/gst-plugins-libpng/files/gst-plugins-good-0.10.15-CVE-2009-1932.patch b/media-plugins/gst-plugins-libpng/files/gst-plugins-good-0.10.15-CVE-2009-1932.patch
deleted file mode 100644
index e07289bc0fd0..000000000000
--- a/media-plugins/gst-plugins-libpng/files/gst-plugins-good-0.10.15-CVE-2009-1932.patch
+++ /dev/null
@@ -1,63 +0,0 @@
-From d9544bcc44adcef769cbdf7f6453e140058a3adc Mon Sep 17 00:00:00 2001
-From: Jan Schmidt <thaytan@noraisin.net>
-Date: Wed, 27 May 2009 16:06:34 +0000
-Subject: pngdec: Avoid possible overflow in calculations
-
-A malformed (or simply huge) PNG file can lead to integer overflow in
-calculating the size of the output buffer, leading to crashes or buffer
-overflows later. Fixes SA35205 security advisory.
----
-diff --git a/ext/libpng/gstpngdec.c b/ext/libpng/gstpngdec.c
-index 524b468..dde459d 100644
---- a/ext/libpng/gstpngdec.c
-+++ b/ext/libpng/gstpngdec.c
-@@ -201,7 +201,14 @@ user_info_callback (png_structp png_ptr, png_infop info)
-
- /* Allocate output buffer */
- pngdec->rowbytes = png_get_rowbytes (pngdec->png, pngdec->info);
-- buffer_size = pngdec->height * GST_ROUND_UP_4 (pngdec->rowbytes);
-+ if (pngdec->rowbytes > (G_MAXUINT32 - 3)
-+ || pngdec->height > G_MAXUINT32 / pngdec->rowbytes) {
-+ ret = GST_FLOW_ERROR;
-+ goto beach;
-+ }
-+ pngdec->rowbytes = GST_ROUND_UP_4 (pngdec->rowbytes);
-+ buffer_size = pngdec->height * pngdec->rowbytes;
-+
- ret =
- gst_pad_alloc_buffer_and_set_caps (pngdec->srcpad, GST_BUFFER_OFFSET_NONE,
- buffer_size, GST_PAD_CAPS (pngdec->srcpad), &buffer);
-@@ -228,7 +235,7 @@ user_endrow_callback (png_structp png_ptr, png_bytep new_row,
- /* If buffer_out doesn't exist, it means buffer_alloc failed, which
- * will already have set the return code */
- if (GST_IS_BUFFER (pngdec->buffer_out)) {
-- size_t offset = row_num * GST_ROUND_UP_4 (pngdec->rowbytes);
-+ size_t offset = row_num * pngdec->rowbytes;
-
- GST_LOG ("got row %u, copying in buffer %p at offset %" G_GSIZE_FORMAT,
- (guint) row_num, pngdec->buffer_out, offset);
-@@ -496,7 +503,12 @@ gst_pngdec_task (GstPad * pad)
-
- /* Allocate output buffer */
- rowbytes = png_get_rowbytes (pngdec->png, pngdec->info);
-- buffer_size = pngdec->height * GST_ROUND_UP_4 (rowbytes);
-+ if (rowbytes > (G_MAXUINT32 - 3) || pngdec->height > G_MAXUINT32 / rowbytes) {
-+ ret = GST_FLOW_ERROR;
-+ goto pause;
-+ }
-+ rowbytes = GST_ROUND_UP_4 (rowbytes);
-+ buffer_size = pngdec->height * rowbytes;
- ret =
- gst_pad_alloc_buffer_and_set_caps (pngdec->srcpad, GST_BUFFER_OFFSET_NONE,
- buffer_size, GST_PAD_CAPS (pngdec->srcpad), &buffer);
-@@ -509,7 +521,7 @@ gst_pngdec_task (GstPad * pad)
-
- for (i = 0; i < pngdec->height; i++) {
- rows[i] = inp;
-- inp += GST_ROUND_UP_4 (rowbytes);
-+ inp += rowbytes;
- }
-
- /* Read the actual picture */
---
-cgit v0.8.2
diff --git a/media-plugins/gst-plugins-libpng/gst-plugins-libpng-0.10.14-r1.ebuild b/media-plugins/gst-plugins-libpng/gst-plugins-libpng-0.10.14-r1.ebuild
deleted file mode 100644
index 221d29956845..000000000000
--- a/media-plugins/gst-plugins-libpng/gst-plugins-libpng-0.10.14-r1.ebuild
+++ /dev/null
@@ -1,21 +0,0 @@
-# Copyright 1999-2009 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-plugins/gst-plugins-libpng/gst-plugins-libpng-0.10.14-r1.ebuild,v 1.8 2009/08/21 13:21:06 leio Exp $
-
-inherit gst-plugins-good
-
-DESCRIPTION="GStreamer encoder/decoder for PNG images"
-KEYWORDS="alpha amd64 ~arm ppc ppc64 sparc x86"
-IUSE=""
-
-DEPEND=">=media-libs/libpng-1.2
- >=media-libs/gstreamer-0.10.22
- >=media-libs/gst-plugins-base-0.10.22"
-
-src_unpack ()
-{
- gst-plugins-good_src_unpack
-
- cd "${S}"
- epatch "${FILESDIR}/gst-plugins-good-0.10.15-CVE-2009-1932.patch"
-}
diff --git a/media-plugins/gst-plugins-libpng/gst-plugins-libpng-0.10.21.ebuild b/media-plugins/gst-plugins-libpng/gst-plugins-libpng-0.10.21.ebuild
new file mode 100644
index 000000000000..f35ba1d6eaaa
--- /dev/null
+++ b/media-plugins/gst-plugins-libpng/gst-plugins-libpng-0.10.21.ebuild
@@ -0,0 +1,14 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-plugins/gst-plugins-libpng/gst-plugins-libpng-0.10.21.ebuild,v 1.1 2010/04/05 04:38:01 leio Exp $
+
+inherit gst-plugins-good
+
+DESCRIPTION="GStreamer encoder/decoder for PNG images"
+KEYWORDS="~alpha ~amd64 ~arm ~ppc ~ppc64 ~sparc ~x86"
+IUSE=""
+
+RDEPEND=">=media-libs/libpng-1.2
+ >=media-libs/gstreamer-0.10.27
+ >=media-libs/gst-plugins-base-0.10.27"
+DEPEND="${RDEPEND}"