diff options
author | Mike Frysinger <vapier@gentoo.org> | 2008-12-21 21:34:00 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2008-12-21 21:34:00 +0000 |
commit | fbb45457f305742426ffdbd303a40737ec4ed371 (patch) | |
tree | 29d5b8ae1b815f140e5aa7f5a6dde752baba82f0 /media-libs/libpng | |
parent | Version bump. (diff) | |
download | gentoo-2-fbb45457f305742426ffdbd303a40737ec4ed371.tar.gz gentoo-2-fbb45457f305742426ffdbd303a40737ec4ed371.tar.bz2 gentoo-2-fbb45457f305742426ffdbd303a40737ec4ed371.zip |
old
Diffstat (limited to 'media-libs/libpng')
-rw-r--r-- | media-libs/libpng/files/libpng-1.2.26-CVE-2008-1382.patch | 191 | ||||
-rw-r--r-- | media-libs/libpng/libpng-1.2.26-r1.ebuild | 39 | ||||
-rw-r--r-- | media-libs/libpng/libpng-1.2.27.ebuild | 42 | ||||
-rw-r--r-- | media-libs/libpng/libpng-1.2.32.ebuild | 42 |
4 files changed, 0 insertions, 314 deletions
diff --git a/media-libs/libpng/files/libpng-1.2.26-CVE-2008-1382.patch b/media-libs/libpng/files/libpng-1.2.26-CVE-2008-1382.patch deleted file mode 100644 index df002ea14155..000000000000 --- a/media-libs/libpng/files/libpng-1.2.26-CVE-2008-1382.patch +++ /dev/null @@ -1,191 +0,0 @@ -diff -ru4N libpng-1.2.26/png.h libpng-1.2.27beta01/png.h ---- libpng-1.2.26/png.h 2008-04-02 12:27:29.867681595 -0500 -+++ libpng-1.2.27beta01/png.h 2008-04-05 21:41:14.644268554 -0500 -@@ -180,8 +180,11 @@ - * 1.0.31 10 10031 10.so.0.31[.0] - * 1.2.25 13 10225 12.so.0.25[.0] - * 1.2.26beta01-06 13 10226 12.so.0.26[.0] - * 1.2.26rc01 13 10226 12.so.0.26[.0] -+ * 1.2.26 13 10226 12.so.0.26[.0] -+ * 1.0.32 10 10032 10.so.0.32[.0] -+ * 1.2.27beta01 13 10227 12.so.0.27[.0] - * - * Henceforth the source version will match the shared-library major - * and minor numbers; the shared-library major version number will be - * used for changes in backward compatibility, as it is intended. The -diff -ru4N libpng-1.2.26/pngpread.c libpng-1.2.27beta01/pngpread.c ---- libpng-1.2.26/pngpread.c 2008-04-05 21:37:29.944173338 -0500 -+++ libpng-1.2.27beta01/pngpread.c 2008-04-05 21:41:14.898914350 -0500 -@@ -1,8 +1,8 @@ - - /* pngpread.c - read a png file in push mode - * -- * Last changed in libpng 1.2.26 [April 2, 2008] -+ * Last changed in libpng 1.2.27 [April 6, 2008] - * For conditions of distribution and use, see copyright notice in png.h - * Copyright (c) 1998-2008 Glenn Randers-Pehrson - * (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger) - * (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.) -@@ -1501,11 +1501,16 @@ - (png_charp)png_ptr->chunk_name, - png_sizeof(png_ptr->unknown_chunk.name)); - png_ptr->unknown_chunk.name[png_sizeof(png_ptr->unknown_chunk.name)-1]='\0'; - -- png_ptr->unknown_chunk.data = (png_bytep)png_malloc(png_ptr, length); - png_ptr->unknown_chunk.size = (png_size_t)length; -- png_crc_read(png_ptr, (png_bytep)png_ptr->unknown_chunk.data, length); -+ if (length == 0) -+ png_ptr->unknown_chunk.data = NULL; -+ else -+ { -+ png_ptr->unknown_chunk.data = (png_bytep)png_malloc(png_ptr, length); -+ png_crc_read(png_ptr, (png_bytep)png_ptr->unknown_chunk.data, length); -+ } - #if defined(PNG_READ_USER_CHUNKS_SUPPORTED) - if(png_ptr->read_user_chunk_fn != NULL) - { - /* callback to user unknown chunk handler */ -@@ -1526,10 +1531,13 @@ - } - else - #endif - png_set_unknown_chunks(png_ptr, info_ptr, &png_ptr->unknown_chunk, 1); -- png_free(png_ptr, png_ptr->unknown_chunk.data); -- png_ptr->unknown_chunk.data = NULL; -+ if (png_ptr->unknown_chunk.data) -+ { -+ png_free(png_ptr, png_ptr->unknown_chunk.data); -+ png_ptr->unknown_chunk.data = NULL; -+ } - } - else - #endif - skip=length; -diff -ru4N libpng-1.2.26/pngrutil.c libpng-1.2.27beta01/pngrutil.c ---- libpng-1.2.26/pngrutil.c 2008-04-05 21:37:32.785260077 -0500 -+++ libpng-1.2.27beta01/pngrutil.c 2008-04-05 21:41:15.202296784 -0500 -@@ -1,8 +1,8 @@ - - /* pngrutil.c - utilities to read a PNG file - * -- * Last changed in libpng 1.2.26 [April 2, 2008] -+ * Last changed in libpng 1.2.27 [April 6, 2008] - * For conditions of distribution and use, see copyright notice in png.h - * Copyright (c) 1998-2008 Glenn Randers-Pehrson - * (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger) - * (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.) -@@ -2226,11 +2226,16 @@ - png_memcpy((png_charp)png_ptr->unknown_chunk.name, - (png_charp)png_ptr->chunk_name, - png_sizeof(png_ptr->unknown_chunk.name)); - png_ptr->unknown_chunk.name[png_sizeof(png_ptr->unknown_chunk.name)-1] = '\0'; -- png_ptr->unknown_chunk.data = (png_bytep)png_malloc(png_ptr, length); - png_ptr->unknown_chunk.size = (png_size_t)length; -- png_crc_read(png_ptr, (png_bytep)png_ptr->unknown_chunk.data, length); -+ if (length == 0) -+ png_ptr->unknown_chunk.data = NULL; -+ else -+ { -+ png_ptr->unknown_chunk.data = (png_bytep)png_malloc(png_ptr, length); -+ png_crc_read(png_ptr, (png_bytep)png_ptr->unknown_chunk.data, length); -+ } - #if defined(PNG_READ_USER_CHUNKS_SUPPORTED) - if(png_ptr->read_user_chunk_fn != NULL) - { - /* callback to user unknown chunk handler */ -@@ -2251,10 +2256,13 @@ - } - else - #endif - png_set_unknown_chunks(png_ptr, info_ptr, &png_ptr->unknown_chunk, 1); -- png_free(png_ptr, png_ptr->unknown_chunk.data); -- png_ptr->unknown_chunk.data = NULL; -+ if (png_ptr->unknown_chunk.data) -+ { -+ png_free(png_ptr, png_ptr->unknown_chunk.data); -+ png_ptr->unknown_chunk.data = NULL; -+ } - } - else - #endif - skip = length; -diff -ru4N libpng-1.2.26/pngset.c libpng-1.2.27beta01/pngset.c ---- libpng-1.2.26/pngset.c 2008-04-02 12:27:30.621225067 -0500 -+++ libpng-1.2.27beta01/pngset.c 2008-04-05 21:41:15.248946598 -0500 -@@ -1,8 +1,8 @@ - - /* pngset.c - storage of image information into info struct - * -- * Last changed in libpng 1.2.25 [February 18, 2008] -+ * Last changed in libpng 1.2.27 [April 6, 2008] - * For conditions of distribution and use, see copyright notice in png.h - * Copyright (c) 1998-2008 Glenn Randers-Pehrson - * (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger) - * (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.) -@@ -1039,30 +1039,33 @@ - info_ptr->unknown_chunks=NULL; - - for (i = 0; i < num_unknowns; i++) - { -- png_unknown_chunkp to = np + info_ptr->unknown_chunks_num + i; -- png_unknown_chunkp from = unknowns + i; -+ png_unknown_chunkp to = np + info_ptr->unknown_chunks_num + i; -+ png_unknown_chunkp from = unknowns + i; - -- png_memcpy((png_charp)to->name, -- (png_charp)from->name, -- png_sizeof(from->name)); -- to->name[png_sizeof(to->name)-1] = '\0'; -+ png_memcpy((png_charp)to->name, -+ (png_charp)from->name, -+ png_sizeof(from->name)); -+ to->name[png_sizeof(to->name)-1] = '\0'; -+ to->size = from->size; -+ /* note our location in the read or write sequence */ -+ to->location = (png_byte)(png_ptr->mode & 0xff); - -- to->data = (png_bytep)png_malloc_warn(png_ptr, from->size); -- if (to->data == NULL) -- { -- png_warning(png_ptr, -+ if (from->size == 0) -+ to->data=NULL; -+ else -+ { -+ to->data = (png_bytep)png_malloc_warn(png_ptr, from->size); -+ if (to->data == NULL) -+ { -+ png_warning(png_ptr, - "Out of memory while processing unknown chunk."); -- } -- else -- { -- png_memcpy(to->data, from->data, from->size); -- to->size = from->size; -- -- /* note our location in the read or write sequence */ -- to->location = (png_byte)(png_ptr->mode & 0xff); -- } -+ to->size=0; -+ } -+ else -+ png_memcpy(to->data, from->data, from->size); -+ } - } - - info_ptr->unknown_chunks = np; - info_ptr->unknown_chunks_num += num_unknowns; -diff -ru4N libpng-1.2.26/pngwrite.c libpng-1.2.27beta01/pngwrite.c ---- libpng-1.2.26/pngwrite.c 2008-04-02 12:27:30.775542734 -0500 -+++ libpng-1.2.27beta01/pngwrite.c 2008-04-05 21:41:15.402698604 -0500 -@@ -111,8 +111,10 @@ - !(up->location & PNG_HAVE_IDAT) && - ((up->name[3] & 0x20) || keep == PNG_HANDLE_CHUNK_ALWAYS || - (png_ptr->flags & PNG_FLAG_KEEP_UNSAFE_CHUNKS))) - { -+ if (up->size == 0) -+ png_warning(png_ptr, "Writing zero-length unknown chunk"); - png_write_chunk(png_ptr, up->name, up->data, up->size); - } - } - } diff --git a/media-libs/libpng/libpng-1.2.26-r1.ebuild b/media-libs/libpng/libpng-1.2.26-r1.ebuild deleted file mode 100644 index 1084f513cda2..000000000000 --- a/media-libs/libpng/libpng-1.2.26-r1.ebuild +++ /dev/null @@ -1,39 +0,0 @@ -# Copyright 1999-2008 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-libs/libpng/libpng-1.2.26-r1.ebuild,v 1.3 2008/04/30 23:59:00 vapier Exp $ - -inherit libtool multilib eutils - -DESCRIPTION="Portable Network Graphics library" -HOMEPAGE="http://www.libpng.org/" -SRC_URI="mirror://sourceforge/libpng/${P}.tar.lzma" - -LICENSE="as-is" -SLOT="1.2" -KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc ~sparc-fbsd x86 ~x86-fbsd" -IUSE="" - -RDEPEND="sys-libs/zlib" -DEPEND="${RDEPEND} - app-arch/lzma-utils" - -src_unpack() { - unpack ${A} - cd "${S}" - epatch "${FILESDIR}"/${PN}-1.2.24-pngconf-setjmp.patch - epatch "${FILESDIR}"/${P}-CVE-2008-1382.patch #217047 - # So we get sane .so versioning on FreeBSD - elibtoolize -} - -src_install() { - emake DESTDIR="${D}" install || die - dodoc ANNOUNCE CHANGES KNOWNBUG README TODO Y2KINFO -} - -pkg_postinst() { - # the libpng authors really screwed around between 1.2.1 and 1.2.3 - if [[ -f ${ROOT}/usr/$(get_libdir)/libpng.so.3.1.2.1 ]] ; then - rm -f "${ROOT}"/usr/$(get_libdir)/libpng.so.3.1.2.1 - fi -} diff --git a/media-libs/libpng/libpng-1.2.27.ebuild b/media-libs/libpng/libpng-1.2.27.ebuild deleted file mode 100644 index 134adaf2bef6..000000000000 --- a/media-libs/libpng/libpng-1.2.27.ebuild +++ /dev/null @@ -1,42 +0,0 @@ -# Copyright 1999-2008 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-libs/libpng/libpng-1.2.27.ebuild,v 1.1 2008/04/30 23:59:37 vapier Exp $ - -inherit autotools libtool multilib eutils - -DESCRIPTION="Portable Network Graphics library" -HOMEPAGE="http://www.libpng.org/" -SRC_URI="mirror://sourceforge/libpng/${P}.tar.lzma" - -LICENSE="as-is" -SLOT="1.2" -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd" -IUSE="" - -RDEPEND="sys-libs/zlib" -DEPEND="${RDEPEND} - app-arch/lzma-utils" - -src_unpack() { - unpack ${A} - cd "${S}" - epatch "${FILESDIR}"/${PN}-1.2.24-pngconf-setjmp.patch - - # bundled autotools are busted - sed -i 's:$(ECHO):echo:' Makefile.am || die - eautoreconf - # So we get sane .so versioning on FreeBSD -# elibtoolize -} - -src_install() { - emake DESTDIR="${D}" install || die - dodoc ANNOUNCE CHANGES KNOWNBUG README TODO Y2KINFO -} - -pkg_postinst() { - # the libpng authors really screwed around between 1.2.1 and 1.2.3 - if [[ -f ${ROOT}/usr/$(get_libdir)/libpng.so.3.1.2.1 ]] ; then - rm -f "${ROOT}"/usr/$(get_libdir)/libpng.so.3.1.2.1 - fi -} diff --git a/media-libs/libpng/libpng-1.2.32.ebuild b/media-libs/libpng/libpng-1.2.32.ebuild deleted file mode 100644 index 34580964b2e7..000000000000 --- a/media-libs/libpng/libpng-1.2.32.ebuild +++ /dev/null @@ -1,42 +0,0 @@ -# Copyright 1999-2008 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-libs/libpng/libpng-1.2.32.ebuild,v 1.1 2008/09/18 21:56:33 vapier Exp $ - -inherit libtool multilib eutils - -MY_PV=${PV/_} -DESCRIPTION="Portable Network Graphics library" -HOMEPAGE="http://www.libpng.org/" -SRC_URI="mirror://sourceforge/libpng/${PN}-${MY_PV}.tar.lzma" - -LICENSE="as-is" -SLOT="1.2" -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd" -IUSE="" - -RDEPEND="sys-libs/zlib" -DEPEND="${RDEPEND} - app-arch/lzma-utils" - -S=${WORKDIR}/${PN}-${MY_PV} - -src_unpack() { - unpack ${A} - cd "${S}" - epatch "${FILESDIR}"/${PN}-1.2.24-pngconf-setjmp.patch - - # So we get sane .so versioning on FreeBSD - elibtoolize -} - -src_install() { - emake DESTDIR="${D}" install || die - dodoc ANNOUNCE CHANGES KNOWNBUG README TODO Y2KINFO -} - -pkg_postinst() { - # the libpng authors really screwed around between 1.2.1 and 1.2.3 - if [[ -f ${ROOT}/usr/$(get_libdir)/libpng.so.3.1.2.1 ]] ; then - rm -f "${ROOT}"/usr/$(get_libdir)/libpng.so.3.1.2.1 - fi -} |