diff -ru4NwbB libpng-1.2.50/configure.ac libpng-1.2.51beta01/configure.ac --- libpng-1.2.50/configure.ac 2012-07-09 19:37:11.299422964 -0500 +++ libpng-1.2.51beta01/configure.ac 2013-01-22 12:30:19.955060157 -0600 @@ -30,9 +30,9 @@ dnl End of version number stuff AC_CONFIG_SRCDIR([pngget.c]) -AM_CONFIG_HEADER(config.h) +AC_CONFIG_HEADERS([config.h]) # Checks for programs. AC_PROG_CC AC_PROG_LD diff -ru4NwbB libpng-1.2.50/contrib/pngminim/encoder/README libpng-1.2.51beta01/contrib/pngminim/encoder/README --- libpng-1.2.50/contrib/pngminim/encoder/README 2012-07-09 19:36:57.677368183 -0500 +++ libpng-1.2.51beta01/contrib/pngminim/encoder/README 2013-01-22 12:30:05.978021890 -0600 @@ -1,7 +1,7 @@ This demonstrates the use of PNG_USER_CONFIG and pngusr.h -To build a minimal write-only decoder with embedded libpng and zlib, run +To build a minimal write-only encoder with embedded libpng and zlib, run gather.sh # to collect needed files from pngminus, libpng, and zlib make diff -ru4NwbB libpng-1.2.50/png.c libpng-1.2.51beta01/png.c --- libpng-1.2.50/png.c 2012-07-09 19:36:56.931670273 -0500 +++ libpng-1.2.51beta01/png.c 2013-01-22 12:30:05.039003219 -0600 @@ -1,8 +1,8 @@ /* png.c - location for general purpose libpng functions * - * Last changed in libpng 1.2.46 [February 25, 2011] + * Last changed in libpng 1.2.51 [February 25, 2011] * Copyright (c) 1998-2011 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.) * @@ -724,15 +724,15 @@ #else #ifdef __STDC__ return ((png_charp) PNG_STRING_NEWLINE \ "libpng version 1.2.51beta01 - January 22, 2013" PNG_STRING_NEWLINE \ - "Copyright (c) 1998-2011 Glenn Randers-Pehrson" PNG_STRING_NEWLINE \ + "Copyright (c) 1998-2013 Glenn Randers-Pehrson" PNG_STRING_NEWLINE \ "Copyright (c) 1996-1997 Andreas Dilger" PNG_STRING_NEWLINE \ "Copyright (c) 1995-1996 Guy Eric Schalnat, Group 42, Inc." \ PNG_STRING_NEWLINE); #else return ((png_charp) "libpng version 1.2.51beta01 - January 22, 2013\ - Copyright (c) 1998-2011 Glenn Randers-Pehrson\ + Copyright (c) 1998-2013 Glenn Randers-Pehrson\ Copyright (c) 1996-1997 Andreas Dilger\ Copyright (c) 1995-1996 Guy Eric Schalnat, Group 42, Inc."); #endif #endif diff -ru4NwbB libpng-1.2.50/png.h libpng-1.2.51beta01/png.h --- libpng-1.2.50/png.h 2012-07-09 19:36:56.905164590 -0500 +++ libpng-1.2.51beta01/png.h 2013-01-22 12:30:05.011440695 -0600 @@ -1,8 +1,8 @@ /* png.h - header file for PNG reference library * * libpng version 1.2.51beta01 - January 22, 2013 - * Copyright (c) 1998-2012 Glenn Randers-Pehrson + * Copyright (c) 1998-2013 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.) * * This code is released under the libpng license (See LICENSE, below) @@ -283,8 +283,9 @@ * 1.0.59 10 10059 10.so.0.59[.0] * 1.2.49 13 10249 12.so.0.49[.0] * 1.0.60 10 10060 10.so.0.60[.0] * 1.2.50 13 10250 12.so.0.50[.0] + * 1.2.51beta01 13 10251 12.so.0.51[.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 -ru4NwbB libpng-1.2.50/pngconf.h libpng-1.2.51beta01/pngconf.h --- libpng-1.2.50/pngconf.h 2012-07-09 19:36:56.915063752 -0500 +++ libpng-1.2.51beta01/pngconf.h 2013-01-22 12:30:05.022196660 -0600 @@ -1,9 +1,9 @@ /* pngconf.h - machine configurable file for libpng * * libpng version 1.2.51beta01 - January 22, 2013 - * Copyright (c) 1998-2012 Glenn Randers-Pehrson + * Copyright (c) 1998-2013 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.) * * This code is released under the libpng license. @@ -867,9 +867,9 @@ /* Added at libpng-1.2.43. To accept all valid PNGs no matter * how large, set these two limits to 0. */ #ifndef PNG_USER_CHUNK_CACHE_MAX -# define PNG_USER_CHUNK_CACHE_MAX 0 +# define PNG_USER_CHUNK_CACHE_MAX 32765 #endif /* Added at libpng-1.2.43 */ #ifndef PNG_USER_CHUNK_MALLOC_MAX diff -ru4NwbB libpng-1.2.50/pngset.c libpng-1.2.51beta01/pngset.c --- libpng-1.2.50/pngset.c 2012-07-09 19:36:57.019705149 -0500 +++ libpng-1.2.51beta01/pngset.c 2013-01-22 12:30:05.139543052 -0600 @@ -1,9 +1,9 @@ /* pngset.c - storage of image information into info struct * - * Last changed in libpng 1.2.49 [March 29, 2012] - * Copyright (c) 1998-2012 Glenn Randers-Pehrson + * Last changed in libpng 1.2.51 [January 22, 2013] + * Copyright (c) 1998-2013 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.) * * This code is released under the libpng license. @@ -849,8 +849,14 @@ if (png_ptr == NULL || info_ptr == NULL) return; + if (num_trans < 0 || num_trans > PNG_MAX_PALETTE_LENGTH) + { + png_warning(png_ptr, "Ignoring invalid num_trans value"); + return; + } + if (trans != NULL) { /* It may not actually be necessary to set png_ptr->trans here; * we do it for backward compatibility with the way the png_handle_tRNS diff -ru4NwbB libpng-1.2.50/projects/xcode/libpng.xcodeproj/project.pbxproj libpng-1.2.51beta01/projects/xcode/libpng.xcodeproj/project.pbxproj --- libpng-1.2.50/projects/xcode/libpng.xcodeproj/project.pbxproj 2012-07-09 19:36:58.112649000 -0500 +++ libpng-1.2.51beta01/projects/xcode/libpng.xcodeproj/project.pbxproj 2013-01-22 12:30:06.535430215 -0600 @@ -221,9 +221,9 @@ buildSettings = { COPY_PHASE_STRIP = NO; DYLIB_COMPATIBILITY_VERSION = 3; DYLIB_CURRENT_VERSION = 3; - FRAMEWORK_VERSION = 1.2.50; + FRAMEWORK_VERSION = 1.2.51beta01; GCC_PRECOMPILE_PREFIX_HEADER = NO; GCC_PREFIX_HEADER = ""; INFOPLIST_FILE = Info.plist; INSTALL_PATH = "@executable_path/../Frameworks"; @@ -239,9 +239,9 @@ isa = XCBuildConfiguration; buildSettings = { DYLIB_COMPATIBILITY_VERSION = 3; DYLIB_CURRENT_VERSION = 3; - FRAMEWORK_VERSION = 1.2.50; + FRAMEWORK_VERSION = 1.2.51beta01; GCC_PRECOMPILE_PREFIX_HEADER = NO; GCC_PREFIX_HEADER = ""; INFOPLIST_FILE = Info.plist; INSTALL_PATH = "@executable_path/../Frameworks";