diff --git a/ANNOUNCE b/ANNOUNCE index 800446b05..44d6722d0 100644 --- a/ANNOUNCE +++ b/ANNOUNCE @@ -1,4 +1,4 @@ -libpng 1.6.41 - January 24, 2024 +libpng 1.6.42 - January 29, 2024 ================================ This is a public release of libpng, intended for use in production code. @@ -9,13 +9,13 @@ Files available for download Source files with LF line endings (for Unix/Linux): - * libpng-1.6.41.tar.xz (LZMA-compressed, recommended) - * libpng-1.6.41.tar.gz (deflate-compressed) + * libpng-1.6.42.tar.xz (LZMA-compressed, recommended) + * libpng-1.6.42.tar.gz (deflate-compressed) Source files with CRLF line endings (for Windows): - * lpng1641.7z (LZMA-compressed, recommended) - * lpng1641.zip (deflate-compressed) + * lpng1642.7z (LZMA-compressed, recommended) + * lpng1642.zip (deflate-compressed) Other information: @@ -25,6 +25,14 @@ Other information: * TRADEMARK.md +Changes from version 1.6.41 to version 1.6.42 +--------------------------------------------- + + * Fixed the implementation of the macro function `png_check_sig`. + This was an API regression, introduced in libpng-1.6.41. + (Reported by Matthieu Darbois) + + Changes from version 1.6.40 to version 1.6.41 --------------------------------------------- diff --git a/CHANGES b/CHANGES index 2d9a57e43..137761a81 100644 --- a/CHANGES +++ b/CHANGES @@ -6134,7 +6134,7 @@ Version 1.6.41 [January 24, 2024] (Contributed by GuXiWei, JinBo and ZhangLixia) Fixed the run-time discovery of MIPS MSA hardware. (Contributed by Sui Jingfeng) - Fixed an off-by-one error in the function `png_do_check_palette_indexes`, + Fixed an off-by-one error in the function png_do_check_palette_indexes(), which failed to recognize errors that might have existed in the first column of a broken palette-encoded image. This was a benign regression accidentally introduced in libpng-1.6.33. No pixel was harmed. @@ -6161,6 +6161,11 @@ Version 1.6.41 [January 24, 2024] Improved the test coverage. (Contributed by John Bowler) +Version 1.6.42 [January 29, 2024] + Fixed the implementation of the macro function png_check_sig(). + This was an API regression, introduced in libpng-1.6.41. + (Reported by Matthieu Darbois) + Send comments/corrections/commendations to png-mng-implement at lists.sf.net. Subscription is required; visit https://lists.sourceforge.net/lists/listinfo/png-mng-implement diff --git a/README b/README index 1f51a808f..0bf27bcfe 100644 --- a/README +++ b/README @@ -1,4 +1,4 @@ -README for libpng version 1.6.41 +README for libpng version 1.6.42 ================================ See the note about version numbers near the top of `png.h`. diff --git a/configure b/configure index 5af26c75a..c562e6351 100755 --- a/configure +++ b/configure @@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.72 for libpng 1.6.41. +# Generated by GNU Autoconf 2.72 for libpng 1.6.42. # # Report bugs to . # @@ -614,8 +614,8 @@ MAKEFLAGS= # Identity of this package. PACKAGE_NAME='libpng' PACKAGE_TARNAME='libpng' -PACKAGE_VERSION='1.6.41' -PACKAGE_STRING='libpng 1.6.41' +PACKAGE_VERSION='1.6.42' +PACKAGE_STRING='libpng 1.6.42' PACKAGE_BUGREPORT='png-mng-implement@lists.sourceforge.net' PACKAGE_URL='' @@ -1416,7 +1416,7 @@ if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -'configure' configures libpng 1.6.41 to adapt to many kinds of systems. +'configure' configures libpng 1.6.42 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1487,7 +1487,7 @@ fi if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of libpng 1.6.41:";; + short | recursive ) echo "Configuration of libpng 1.6.42:";; esac cat <<\_ACEOF @@ -1683,7 +1683,7 @@ fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -libpng configure 1.6.41 +libpng configure 1.6.42 generated by GNU Autoconf 2.72 Copyright (C) 2023 Free Software Foundation, Inc. @@ -1946,7 +1946,7 @@ cat >config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by libpng $as_me 1.6.41, which was +It was created by libpng $as_me 1.6.42, which was generated by GNU Autoconf 2.72. Invocation command line was $ $0$ac_configure_args_raw @@ -3246,7 +3246,7 @@ fi # Define the identity of the package. PACKAGE='libpng' - VERSION='1.6.41' + VERSION='1.6.42' printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h @@ -3379,7 +3379,7 @@ fi -PNGLIB_VERSION=1.6.41 +PNGLIB_VERSION=1.6.42 PNGLIB_MAJOR=1 PNGLIB_MINOR=6 PNGLIB_RELEASE=41 @@ -15382,7 +15382,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by libpng $as_me 1.6.41, which was +This file was extended by libpng $as_me 1.6.42, which was generated by GNU Autoconf 2.72. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -15450,7 +15450,7 @@ ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config='$ac_cs_config_escaped' ac_cs_version="\\ -libpng config.status 1.6.41 +libpng config.status 1.6.42 configured by $0, generated by GNU Autoconf 2.72, with options \\"\$ac_cs_config\\" diff --git a/configure.ac b/configure.ac index d81a58002..612423406 100644 --- a/configure.ac +++ b/configure.ac @@ -25,7 +25,7 @@ AC_PREREQ([2.68]) dnl Version number stuff here: -AC_INIT([libpng],[1.6.41],[png-mng-implement@lists.sourceforge.net]) +AC_INIT([libpng],[1.6.42],[png-mng-implement@lists.sourceforge.net]) AC_CONFIG_MACRO_DIR([scripts/autoconf]) # libpng does not follow GNU file name conventions (hence 'foreign') @@ -46,7 +46,7 @@ dnl automake, so the following is not necessary (and is not defined anyway): dnl AM_PREREQ([1.11.2]) dnl stop configure from automagically running automake -PNGLIB_VERSION=1.6.41 +PNGLIB_VERSION=1.6.42 PNGLIB_MAJOR=1 PNGLIB_MINOR=6 PNGLIB_RELEASE=41 diff --git a/libpng-manual.txt b/libpng-manual.txt index acc12b307..eb24ef483 100644 --- a/libpng-manual.txt +++ b/libpng-manual.txt @@ -9,7 +9,7 @@ libpng-manual.txt - A description on how to use and modify libpng Based on: - libpng version 1.6.36, December 2018, through 1.6.41 - January 2024 + libpng version 1.6.36, December 2018, through 1.6.42 - January 2024 Updated and distributed by Cosmin Truta Copyright (c) 2018-2024 Cosmin Truta diff --git a/libpng.3 b/libpng.3 index cdc8d56de..57d06f2db 100644 --- a/libpng.3 +++ b/libpng.3 @@ -1,6 +1,6 @@ -.TH LIBPNG 3 "January 24, 2024" +.TH LIBPNG 3 "January 29, 2024" .SH NAME -libpng \- Portable Network Graphics (PNG) Reference Library 1.6.41 +libpng \- Portable Network Graphics (PNG) Reference Library 1.6.42 .SH SYNOPSIS \fB#include \fP @@ -528,7 +528,7 @@ libpng-manual.txt - A description on how to use and modify libpng Based on: - libpng version 1.6.36, December 2018, through 1.6.41 - January 2024 + libpng version 1.6.36, December 2018, through 1.6.42 - January 2024 Updated and distributed by Cosmin Truta Copyright (c) 2018-2024 Cosmin Truta diff --git a/libpngpf.3 b/libpngpf.3 index 610432dcb..a46920503 100644 --- a/libpngpf.3 +++ b/libpngpf.3 @@ -1,6 +1,6 @@ -.TH LIBPNGPF 3 "January 24, 2024" +.TH LIBPNGPF 3 "January 29, 2024" .SH NAME -libpng \- Portable Network Graphics (PNG) Reference Library 1.6.41 +libpng \- Portable Network Graphics (PNG) Reference Library 1.6.42 (private functions) .SH SYNOPSIS diff --git a/png.5 b/png.5 index e2c177a7e..1737ba510 100644 --- a/png.5 +++ b/png.5 @@ -1,4 +1,4 @@ -.TH PNG 5 "January 24, 2024" +.TH PNG 5 "January 29, 2024" .SH NAME png \- Portable Network Graphics (PNG) format diff --git a/png.c b/png.c index e411381f8..cf9f36107 100644 --- a/png.c +++ b/png.c @@ -14,7 +14,7 @@ #include "pngpriv.h" /* Generate a compiler error if there is an old png.h in the search path. */ -typedef png_libpng_version_1_6_41 Your_png_h_is_not_version_1_6_41; +typedef png_libpng_version_1_6_42 Your_png_h_is_not_version_1_6_42; /* Tells libpng that we have already handled the first "num_bytes" bytes * of the PNG file signature. If the PNG data is embedded into another @@ -794,7 +794,7 @@ png_get_copyright(png_const_structrp png_ptr) return PNG_STRING_COPYRIGHT #else return PNG_STRING_NEWLINE \ - "libpng version 1.6.41" PNG_STRING_NEWLINE \ + "libpng version 1.6.42" PNG_STRING_NEWLINE \ "Copyright (c) 2018-2024 Cosmin Truta" PNG_STRING_NEWLINE \ "Copyright (c) 1998-2002,2004,2006-2018 Glenn Randers-Pehrson" \ PNG_STRING_NEWLINE \ diff --git a/png.h b/png.h index fefd45662..f537c5bb0 100644 --- a/png.h +++ b/png.h @@ -1,7 +1,7 @@ /* png.h - header file for PNG reference library * - * libpng version 1.6.41 + * libpng version 1.6.42 * * Copyright (c) 2018-2024 Cosmin Truta * Copyright (c) 1998-2002,2004,2006-2018 Glenn Randers-Pehrson @@ -15,7 +15,7 @@ * libpng versions 0.89, June 1996, through 0.96, May 1997: Andreas Dilger * libpng versions 0.97, January 1998, through 1.6.35, July 2018: * Glenn Randers-Pehrson - * libpng versions 1.6.36, December 2018, through 1.6.41, January 2024: + * libpng versions 1.6.36, December 2018, through 1.6.42, January 2024: * Cosmin Truta * See also "Contributing Authors", below. */ @@ -239,7 +239,7 @@ * ... * 1.5.30 15 10530 15.so.15.30[.0] * ... - * 1.6.41 16 10641 16.so.16.41[.0] + * 1.6.42 16 10641 16.so.16.41[.0] * * Henceforth the source version will match the shared-library major and * minor numbers; the shared-library major version number will be used for @@ -278,7 +278,7 @@ */ /* Version information for png.h - this should match the version in png.c */ -#define PNG_LIBPNG_VER_STRING "1.6.41" +#define PNG_LIBPNG_VER_STRING "1.6.42" #define PNG_HEADER_VERSION_STRING " libpng version " PNG_LIBPNG_VER_STRING "\n" #define PNG_LIBPNG_VER_SONUM 16 @@ -318,7 +318,7 @@ * From version 1.0.1 it is: * XXYYZZ, where XX=major, YY=minor, ZZ=release */ -#define PNG_LIBPNG_VER 10641 /* 1.6.41 */ +#define PNG_LIBPNG_VER 10641 /* 1.6.42 */ /* Library configuration: these options cannot be changed after * the library has been built. @@ -428,7 +428,7 @@ extern "C" { /* This triggers a compiler error in png.c, if png.c and png.h * do not agree upon the version number. */ -typedef char* png_libpng_version_1_6_41; +typedef char* png_libpng_version_1_6_42; /* Basic control structions. Read libpng-manual.txt or libpng.3 for more info. * diff --git a/pngconf.h b/pngconf.h index 30c1aad52..99851f4f9 100644 --- a/pngconf.h +++ b/pngconf.h @@ -1,7 +1,7 @@ /* pngconf.h - machine-configurable file for libpng * - * libpng version 1.6.41 + * libpng version 1.6.42 * * Copyright (c) 2018-2024 Cosmin Truta * Copyright (c) 1998-2002,2004,2006-2016,2018 Glenn Randers-Pehrson diff --git a/pngtest.c b/pngtest.c index f83e8bbf2..d96750102 100644 --- a/pngtest.c +++ b/pngtest.c @@ -2155,4 +2155,4 @@ main(void) #endif /* Generate a compiler error if there is an old png.h in the search path. */ -typedef png_libpng_version_1_6_41 Your_png_h_is_not_version_1_6_41; +typedef png_libpng_version_1_6_42 Your_png_h_is_not_version_1_6_42; diff --git a/scripts/libpng-config-head.in b/scripts/libpng-config-head.in index 3cc2ecb71..5fde8aeaf 100644 --- a/scripts/libpng-config-head.in +++ b/scripts/libpng-config-head.in @@ -11,7 +11,7 @@ # Modeled after libxml-config. -version=1.6.41 +version=1.6.42 prefix="" libdir="" libs="" diff --git a/scripts/libpng.pc.in b/scripts/libpng.pc.in index d206d86a4..2d578b68c 100644 --- a/scripts/libpng.pc.in +++ b/scripts/libpng.pc.in @@ -5,6 +5,6 @@ includedir=@includedir@/libpng16 Name: libpng Description: Loads and saves PNG files -Version: 1.6.41 +Version: 1.6.42 Libs: -L${libdir} -lpng16 Cflags: -I${includedir} diff --git a/scripts/pnglibconf.h.prebuilt b/scripts/pnglibconf.h.prebuilt index d768a8ef0..330453c13 100644 --- a/scripts/pnglibconf.h.prebuilt +++ b/scripts/pnglibconf.h.prebuilt @@ -1,6 +1,6 @@ /* pnglibconf.h - library build configuration */ -/* libpng version 1.6.41 */ +/* libpng version 1.6.42 */ /* Copyright (c) 2018-2024 Cosmin Truta */ /* Copyright (c) 1998-2002,2004,2006-2018 Glenn Randers-Pehrson */