summaryrefslogtreecommitdiff
path: root/x11/wxGTK24
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2011-01-24 09:33:32 +0000
committerwiz <wiz@pkgsrc.org>2011-01-24 09:33:32 +0000
commit00734f9a1b1969648272bc2b8ca713631acef37f (patch)
tree89a6159d0f111a59b02e97282937fc6962d2bc95 /x11/wxGTK24
parentbaa494bea25aa3af7ca9b57debcde5c225a9e1ef (diff)
downloadpkgsrc-00734f9a1b1969648272bc2b8ca713631acef37f.tar.gz
Fix build with png-1.5.
Diffstat (limited to 'x11/wxGTK24')
-rw-r--r--x11/wxGTK24/distinfo4
-rw-r--r--x11/wxGTK24/patches/patch-ao21
2 files changed, 22 insertions, 3 deletions
diff --git a/x11/wxGTK24/distinfo b/x11/wxGTK24/distinfo
index 60ca805ca02..7ee7e3b2a8f 100644
--- a/x11/wxGTK24/distinfo
+++ b/x11/wxGTK24/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.13 2010/12/22 19:44:24 chuck Exp $
+$NetBSD: distinfo,v 1.14 2011/01/24 09:38:13 wiz Exp $
SHA1 (wxGTK-2.4.2.tar.bz2) = 3f1ebacaaf8eb5510c14ee10bafbc5f225be842c
RMD160 (wxGTK-2.4.2.tar.bz2) = 8076d1ba31c9b23becb241cbad5a83763fee776e
@@ -17,6 +17,6 @@ SHA1 (patch-ak) = 3f26086c8f16ac972db89c21f665c187570937cc
SHA1 (patch-al) = bceed88db708c83afca0fe3adb5c923f9bc661b0
SHA1 (patch-am) = 445ae223a6fd88b86efafa7c13dbcf3f359f364f
SHA1 (patch-an) = a9d276244cac87fa00a3c3338179e68084b72b1d
-SHA1 (patch-ao) = 7fb559c8662b20a61d39b308d3b6723b0dde6673
+SHA1 (patch-ao) = 3ee66e4bdef6ede5e715fc951f48887e90d0d13a
SHA1 (patch-ap) = b1217506bfffe9ed7a282c960a99921c61d76dbd
SHA1 (patch-aq) = 72cc09c94ca6911859f3b40f01e13f0f95d07141
diff --git a/x11/wxGTK24/patches/patch-ao b/x11/wxGTK24/patches/patch-ao
index c6aabd03277..370c26de879 100644
--- a/x11/wxGTK24/patches/patch-ao
+++ b/x11/wxGTK24/patches/patch-ao
@@ -1,9 +1,28 @@
-$NetBSD: patch-ao,v 1.1 2010/02/16 17:33:39 taca Exp $
+$NetBSD: patch-ao,v 1.2 2011/01/24 09:38:13 wiz Exp $
+Fix build with png-1.5.
deal with CVE-2009-2369.
--- src/common/imagpng.cpp.orig 2003-09-21 11:31:39.000000000 +0000
+++ src/common/imagpng.cpp
+@@ -167,7 +167,7 @@ bool wxPNGHandler::LoadFile( wxImage *im
+ image->Destroy();
+
+ png_structp png_ptr = png_create_read_struct( PNG_LIBPNG_VER_STRING,
+- (voidp) NULL,
++ NULL,
+ (png_error_ptr) NULL,
+ (png_error_ptr) NULL );
+ if (!png_ptr)
+@@ -186,7 +186,7 @@ bool wxPNGHandler::LoadFile( wxImage *im
+ if (setjmp(wxinfo.jmpbuf))
+ goto error_nolines;
+
+- if (info_ptr->color_type == PNG_COLOR_TYPE_RGB_ALPHA)
++ if (png_get_color_type( png_ptr, info_ptr ) == PNG_COLOR_TYPE_RGB_ALPHA)
+ goto error_nolines;
+
+ png_uint_32 width,height;
@@ -213,18 +213,16 @@ bool wxPNGHandler::LoadFile( wxImage *im
if (!image->Ok())
goto error_nolines;