mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 17:44:45 +00:00
[LIBPNG] Update to version 1.6.39. CORE-18670
This commit is contained in:
parent
c5febe93f0
commit
991e2bd45b
15 changed files with 136 additions and 117 deletions
30
dll/3rdparty/libpng/docs/ANNOUNCE
vendored
30
dll/3rdparty/libpng/docs/ANNOUNCE
vendored
|
@ -1,5 +1,5 @@
|
||||||
libpng 1.6.38 - September 14, 2022
|
libpng 1.6.39 - November 20, 2022
|
||||||
==================================
|
=================================
|
||||||
|
|
||||||
This is a public release of libpng, intended for use in production code.
|
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):
|
Source files with LF line endings (for Unix/Linux):
|
||||||
|
|
||||||
* libpng-1.6.38.tar.xz (LZMA-compressed, recommended)
|
* libpng-1.6.39.tar.xz (LZMA-compressed, recommended)
|
||||||
* libpng-1.6.38.tar.gz
|
* libpng-1.6.39.tar.gz
|
||||||
|
|
||||||
Source files with CRLF line endings (for Windows):
|
Source files with CRLF line endings (for Windows):
|
||||||
|
|
||||||
* lp1638.7z (LZMA-compressed, recommended)
|
* lpng1639.7z (LZMA-compressed, recommended)
|
||||||
* lp1638.zip
|
* lpng1639.zip
|
||||||
|
|
||||||
Other information:
|
Other information:
|
||||||
|
|
||||||
|
@ -25,13 +25,19 @@ Other information:
|
||||||
* TRADEMARK.md
|
* TRADEMARK.md
|
||||||
|
|
||||||
|
|
||||||
Changes since the previous public release (version 1.6.37)
|
Changes from version 1.6.38 to version 1.6.39
|
||||||
----------------------------------------------------------
|
---------------------------------------------
|
||||||
|
|
||||||
* Added configurations and scripts for continuous integration.
|
* Changed the error handler of oversized chunks (i.e. larger than
|
||||||
* Fixed various errors in the handling of tRNS, hIST and eXIf.
|
PNG_USER_CHUNK_MALLOC_MAX) from png_chunk_error to png_benign_error.
|
||||||
* Implemented many stability improvements across all platforms.
|
* Fixed a buffer overflow error in contrib/tools/pngfix.
|
||||||
* Updated the internal documentation.
|
* Fixed a memory leak (CVE-2019-6129) in contrib/tools/pngcp.
|
||||||
|
* Disabled the ARM Neon optimizations by default in the CMake file,
|
||||||
|
following the default behavior of the configure script.
|
||||||
|
* Allowed configure.ac to work with the trunk version of autoconf.
|
||||||
|
* Removed the support for "install" targets from the legacy makefiles;
|
||||||
|
removed the obsolete makefile.cegcc.
|
||||||
|
* Cleaned up the code and updated the internal documentation.
|
||||||
|
|
||||||
|
|
||||||
Send comments/corrections/commendations to png-mng-implement at lists.sf.net.
|
Send comments/corrections/commendations to png-mng-implement at lists.sf.net.
|
||||||
|
|
22
dll/3rdparty/libpng/docs/CHANGES
vendored
22
dll/3rdparty/libpng/docs/CHANGES
vendored
|
@ -4052,7 +4052,7 @@ Version 1.6.0beta16 [March 6, 2012]
|
||||||
(in fact this is harmless, but the PNG data produced may be sub-optimal).
|
(in fact this is harmless, but the PNG data produced may be sub-optimal).
|
||||||
|
|
||||||
Version 1.6.0beta17 [March 10, 2012]
|
Version 1.6.0beta17 [March 10, 2012]
|
||||||
Fixed PNG_LIBPNG_BUILD_BASE_TYPE definition.
|
Fixed PNG_LIBPNG_BUILD_BASE_TYPE definition.
|
||||||
Reject all iCCP chunks after the first, even if the first one is invalid.
|
Reject all iCCP chunks after the first, even if the first one is invalid.
|
||||||
Deflate/inflate was reworked to move common zlib calls into single
|
Deflate/inflate was reworked to move common zlib calls into single
|
||||||
functions [rw]util.c. A new shared keyword check routine was also added
|
functions [rw]util.c. A new shared keyword check routine was also added
|
||||||
|
@ -4962,7 +4962,7 @@ Version 1.6.13beta01 [July 4, 2014]
|
||||||
Changed "if defined(__ARM_NEON__)" to
|
Changed "if defined(__ARM_NEON__)" to
|
||||||
"if (defined(__ARM_NEON__) || defined(__ARM_NEON))" (James Wu).
|
"if (defined(__ARM_NEON__) || defined(__ARM_NEON))" (James Wu).
|
||||||
Fixed clang no-warning builds: png_digit was defined but never used.
|
Fixed clang no-warning builds: png_digit was defined but never used.
|
||||||
|
|
||||||
Version 1.6.13beta02 [July 21, 2014]
|
Version 1.6.13beta02 [July 21, 2014]
|
||||||
Fixed an incorrect separator ("/" should be "\") in scripts/makefile.vcwin32
|
Fixed an incorrect separator ("/" should be "\") in scripts/makefile.vcwin32
|
||||||
(bug report from Wolfgang S. Kechel). Bug was introduced in libpng-1.6.11.
|
(bug report from Wolfgang S. Kechel). Bug was introduced in libpng-1.6.11.
|
||||||
|
@ -5453,7 +5453,7 @@ Version 1.6.21beta01 [December 11, 2015]
|
||||||
Version 1.6.21beta02 [December 14, 2015]
|
Version 1.6.21beta02 [December 14, 2015]
|
||||||
Moved png_check_keyword() from pngwutil.c to pngset.c
|
Moved png_check_keyword() from pngwutil.c to pngset.c
|
||||||
Removed LE/BE dependencies in pngvalid, to 'fix' the current problem
|
Removed LE/BE dependencies in pngvalid, to 'fix' the current problem
|
||||||
in the BigEndian tests by not testing it, making the BE code the same
|
in the BigEndian tests by not testing it, making the BE code the same
|
||||||
as the LE version.
|
as the LE version.
|
||||||
Fixes to pngvalid for various reduced build configurations (eliminate unused
|
Fixes to pngvalid for various reduced build configurations (eliminate unused
|
||||||
statics) and a fix for the case in rgb_to_gray when the digitize option
|
statics) and a fix for the case in rgb_to_gray when the digitize option
|
||||||
|
@ -5517,7 +5517,7 @@ Version 1.6.22beta03 [March 9, 2016]
|
||||||
Added a common-law trademark notice and export control information
|
Added a common-law trademark notice and export control information
|
||||||
to the LICENSE file, png.h, and the man page.
|
to the LICENSE file, png.h, and the man page.
|
||||||
Restored "& 0xff" in png_save_uint_16() and png_save_uint_32() that
|
Restored "& 0xff" in png_save_uint_16() and png_save_uint_32() that
|
||||||
were accidentally removed from libpng-1.6.17.
|
were accidentally removed from libpng-1.6.17.
|
||||||
Changed PNG_INFO_cHNK and PNG_FREE_cHNK from 0xnnnn to 0xnnnnU in png.h
|
Changed PNG_INFO_cHNK and PNG_FREE_cHNK from 0xnnnn to 0xnnnnU in png.h
|
||||||
(Robert C. Seacord).
|
(Robert C. Seacord).
|
||||||
Removed dubious "#if INT_MAX" test from png.h that was added to
|
Removed dubious "#if INT_MAX" test from png.h that was added to
|
||||||
|
@ -5950,7 +5950,7 @@ Version 1.6.32beta09 [August 3, 2017]
|
||||||
Require cmake-2.8.8 in CMakeLists.txt. Revised symlink creation,
|
Require cmake-2.8.8 in CMakeLists.txt. Revised symlink creation,
|
||||||
no longer using deprecated cmake LOCATION feature (Clifford Yapp).
|
no longer using deprecated cmake LOCATION feature (Clifford Yapp).
|
||||||
Fixed five-byte error in the calculation of IDAT maximum possible size.
|
Fixed five-byte error in the calculation of IDAT maximum possible size.
|
||||||
|
|
||||||
Version 1.6.32beta10 [August 5, 2017]
|
Version 1.6.32beta10 [August 5, 2017]
|
||||||
Moved chunk-length check into a png_check_chunk_length() private
|
Moved chunk-length check into a png_check_chunk_length() private
|
||||||
function (Suggested by Max Stepin).
|
function (Suggested by Max Stepin).
|
||||||
|
@ -6109,6 +6109,18 @@ Version 1.6.38 [September 14, 2022]
|
||||||
Implemented many stability improvements across all platforms.
|
Implemented many stability improvements across all platforms.
|
||||||
Updated the internal documentation.
|
Updated the internal documentation.
|
||||||
|
|
||||||
|
Version 1.6.39 [November 20, 2022]
|
||||||
|
Changed the error handler of oversized chunks (i.e. larger than
|
||||||
|
PNG_USER_CHUNK_MALLOC_MAX) from png_chunk_error to png_benign_error.
|
||||||
|
Fixed a buffer overflow error in contrib/tools/pngfix.
|
||||||
|
Fixed a memory leak (CVE-2019-6129) in contrib/tools/pngcp.
|
||||||
|
Disabled the ARM Neon optimizations by default in the CMake file,
|
||||||
|
following the default behavior of the configure script.
|
||||||
|
Allowed configure.ac to work with the trunk version of autoconf.
|
||||||
|
Removed the support for "install" targets from the legacy makefiles;
|
||||||
|
removed the obsolete makefile.cegcc.
|
||||||
|
Cleaned up the code and updated the internal documentation.
|
||||||
|
|
||||||
Send comments/corrections/commendations to png-mng-implement at lists.sf.net.
|
Send comments/corrections/commendations to png-mng-implement at lists.sf.net.
|
||||||
Subscription is required; visit
|
Subscription is required; visit
|
||||||
https://lists.sourceforge.net/lists/listinfo/png-mng-implement
|
https://lists.sourceforge.net/lists/listinfo/png-mng-implement
|
||||||
|
|
10
dll/3rdparty/libpng/docs/INSTALL
vendored
10
dll/3rdparty/libpng/docs/INSTALL
vendored
|
@ -192,11 +192,11 @@ test. For more confidence, you can run another test by typing
|
||||||
Also, you can run "pngtest -m contrib/pngsuite/*.png" and compare
|
Also, you can run "pngtest -m contrib/pngsuite/*.png" and compare
|
||||||
your output with the result shown in contrib/pngsuite/README.
|
your output with the result shown in contrib/pngsuite/README.
|
||||||
|
|
||||||
Most of the makefiles will allow you to run "make install" to
|
Most of the makefiles used to allow you to run "make install" to put
|
||||||
put the library in its final resting place (if you want to
|
the library in its final resting place, but that feature is no longer
|
||||||
do that, run "make install" in the zlib directory first if necessary).
|
supported. The only tested and supported manners to install libpng are
|
||||||
Some also allow you to run "make test-installed" after you have
|
the conventional build and install procedures driven by the configure
|
||||||
run "make install".
|
script or by the CMake file.
|
||||||
|
|
||||||
VIII. Configuring for DOS and other 16-bit platforms
|
VIII. Configuring for DOS and other 16-bit platforms
|
||||||
|
|
||||||
|
|
137
dll/3rdparty/libpng/docs/README
vendored
137
dll/3rdparty/libpng/docs/README
vendored
|
@ -1,4 +1,4 @@
|
||||||
README for libpng version 1.6.38
|
README for libpng version 1.6.39
|
||||||
================================
|
================================
|
||||||
|
|
||||||
See the note about version numbers near the top of png.h.
|
See the note about version numbers near the top of png.h.
|
||||||
|
@ -106,73 +106,74 @@ subscribe).
|
||||||
|
|
||||||
Files in this distribution:
|
Files in this distribution:
|
||||||
|
|
||||||
ANNOUNCE => Announcement of this version, with recent changes
|
ANNOUNCE => Announcement of this version, with recent changes
|
||||||
AUTHORS => List of contributing authors
|
AUTHORS => List of contributing authors
|
||||||
CHANGES => Description of changes between libpng versions
|
CHANGES => Description of changes between libpng versions
|
||||||
KNOWNBUG => List of known bugs and deficiencies
|
INSTALL => Instructions to install libpng
|
||||||
LICENSE => License to use and redistribute libpng
|
LICENSE => License to use and redistribute libpng
|
||||||
README => This file
|
README => This file
|
||||||
TODO => Things not implemented in the current library
|
TODO => Things not implemented in the current library
|
||||||
TRADEMARK => Trademark information
|
TRADEMARK => Trademark information
|
||||||
example.c => Example code for using libpng functions
|
example.c => Example code for using libpng functions
|
||||||
libpng.3 => manual page for libpng (includes libpng-manual.txt)
|
libpng.3 => Manual page for libpng (includes libpng-manual.txt)
|
||||||
libpng-manual.txt => Description of libpng and its functions
|
libpng-manual.txt => Description of libpng and its functions
|
||||||
libpngpf.3 => manual page for libpng's private functions
|
libpngpf.3 => Manual page for libpng's private functions (deprecated)
|
||||||
png.5 => manual page for the PNG format
|
png.5 => Manual page for the PNG format
|
||||||
png.c => Basic interface functions common to library
|
png.c => Basic interface functions common to library
|
||||||
png.h => Library function and interface declarations (public)
|
png.h => Library function and interface declarations (public)
|
||||||
pngpriv.h => Library function and interface declarations (private)
|
pngpriv.h => Library function and interface declarations (private)
|
||||||
pngconf.h => System specific library configuration (public)
|
pngconf.h => System specific library configuration (public)
|
||||||
pngstruct.h => png_struct declaration (private)
|
pngstruct.h => png_struct declaration (private)
|
||||||
pnginfo.h => png_info struct declaration (private)
|
pnginfo.h => png_info struct declaration (private)
|
||||||
pngdebug.h => debugging macros (private)
|
pngdebug.h => debugging macros (private)
|
||||||
pngerror.c => Error/warning message I/O functions
|
pngerror.c => Error/warning message I/O functions
|
||||||
pngget.c => Functions for retrieving info from struct
|
pngget.c => Functions for retrieving info from struct
|
||||||
pngmem.c => Memory handling functions
|
pngmem.c => Memory handling functions
|
||||||
pngbar.png => PNG logo, 88x31
|
pngbar.png => PNG logo, 88x31
|
||||||
pngnow.png => PNG logo, 98x31
|
pngnow.png => PNG logo, 98x31
|
||||||
pngpread.c => Progressive reading functions
|
pngpread.c => Progressive reading functions
|
||||||
pngread.c => Read data/helper high-level functions
|
pngread.c => Read data/helper high-level functions
|
||||||
pngrio.c => Lowest-level data read I/O functions
|
pngrio.c => Lowest-level data read I/O functions
|
||||||
pngrtran.c => Read data transformation functions
|
pngrtran.c => Read data transformation functions
|
||||||
pngrutil.c => Read data utility functions
|
pngrutil.c => Read data utility functions
|
||||||
pngset.c => Functions for storing data into the info_struct
|
pngset.c => Functions for storing data into the info_struct
|
||||||
pngtest.c => Library test program
|
pngtest.c => Library test program
|
||||||
pngtest.png => Library test sample image
|
pngtest.png => Library test sample image
|
||||||
pngtrans.c => Common data transformation functions
|
pngtrans.c => Common data transformation functions
|
||||||
pngwio.c => Lowest-level write I/O functions
|
pngwio.c => Lowest-level write I/O functions
|
||||||
pngwrite.c => High-level write functions
|
pngwrite.c => High-level write functions
|
||||||
pngwtran.c => Write data transformations
|
pngwtran.c => Write data transformations
|
||||||
pngwutil.c => Write utility functions
|
pngwutil.c => Write utility functions
|
||||||
arm => Contains optimized code for the ARM platform
|
arm/ => Optimized code for the ARM platform
|
||||||
powerpc => Contains optimized code for the PowerPC platform
|
intel/ => Optimized code for the INTEL-SSE2 platform
|
||||||
contrib => Contributions
|
mips/ => Optimized code for the MIPS platform
|
||||||
arm-neon => Optimized code for ARM-NEON platform
|
powerpc/ => Optimized code for the PowerPC platform
|
||||||
powerpc-vsx => Optimized code for POWERPC-VSX platform
|
ci/ => Scripts for continuous integration
|
||||||
examples => Example programs
|
contrib/ => External contributions
|
||||||
gregbook => source code for PNG reading and writing, from
|
arm-neon/ => Optimized code for the ARM-NEON platform
|
||||||
Greg Roelofs' "PNG: The Definitive Guide",
|
mips-msa/ => Optimized code for the MIPS-MSA platform
|
||||||
O'Reilly, 1999
|
powerpc-vsx/ => Optimized code for the POWERPC-VSX platform
|
||||||
libtests => Test programs
|
examples/ => Example programs
|
||||||
mips-msa => Optimized code for MIPS-MSA platform
|
gregbook/ => Source code for PNG reading and writing, from
|
||||||
pngminim => Minimal decoder, encoder, and progressive decoder
|
"PNG: The Definitive Guide" by Greg Roelofs,
|
||||||
programs demonstrating use of pngusr.dfa
|
O'Reilly, 1999
|
||||||
pngminus => Simple pnm2png and png2pnm programs
|
libtests/ => Test programs
|
||||||
pngsuite => Test images
|
oss-fuzz/ => Files used by the OSS-Fuzz project for fuzz-testing
|
||||||
testpngs
|
libpng
|
||||||
tools => Various tools
|
pngminim/ => Minimal decoder, encoder, and progressive decoder
|
||||||
visupng => Contains a MSVC workspace for VisualPng
|
programs demonstrating the use of pngusr.dfa
|
||||||
intel => Optimized code for INTEL-SSE2 platform
|
pngminus/ => Simple pnm2png and png2pnm programs
|
||||||
mips => Optimized code for MIPS platform
|
pngsuite/ => Test images
|
||||||
projects => Contains project files and workspaces for
|
testpngs/ => Test images
|
||||||
building a DLL
|
tools/ => Various tools
|
||||||
owatcom => Contains a WATCOM project for building libpng
|
visupng/ => VisualPng, a Windows viewer for PNG images
|
||||||
visualc71 => Contains a Microsoft Visual C++ (MSVC)
|
projects/ => Project files and workspaces for various IDEs
|
||||||
workspace for building libpng and zlib
|
owatcom/ => OpenWatcom project
|
||||||
vstudio => Contains a Microsoft Visual C++ (MSVC)
|
visualc71/ => Microsoft Visual C++ 7.1 workspace
|
||||||
workspace for building libpng and zlib
|
vstudio/ => Microsoft Visual Studio workspace
|
||||||
scripts => Directory containing scripts for building libpng:
|
scripts/ => Scripts and makefiles for building libpng
|
||||||
(see scripts/README.txt for the list of scripts)
|
(see scripts/README.txt for the complete list)
|
||||||
|
tests/ => Test scripts
|
||||||
|
|
||||||
Good luck, and happy coding!
|
Good luck, and happy coding!
|
||||||
|
|
||||||
|
|
4
dll/3rdparty/libpng/docs/libpng-manual.txt
vendored
4
dll/3rdparty/libpng/docs/libpng-manual.txt
vendored
|
@ -9,7 +9,7 @@ libpng-manual.txt - A description on how to use and modify libpng
|
||||||
|
|
||||||
Based on:
|
Based on:
|
||||||
|
|
||||||
libpng version 1.6.36, December 2018, through 1.6.38 - September 2022
|
libpng version 1.6.36, December 2018, through 1.6.39 - November 2022
|
||||||
Updated and distributed by Cosmin Truta
|
Updated and distributed by Cosmin Truta
|
||||||
Copyright (c) 2018-2022 Cosmin Truta
|
Copyright (c) 2018-2022 Cosmin Truta
|
||||||
|
|
||||||
|
@ -877,7 +877,7 @@ described below (the latter being the two common names for associated alpha
|
||||||
color channels). Note that PNG files always contain non-associated color
|
color channels). Note that PNG files always contain non-associated color
|
||||||
channels; png_set_alpha_mode() with one of the modes causes the decoder to
|
channels; png_set_alpha_mode() with one of the modes causes the decoder to
|
||||||
convert the pixels to an associated form before returning them to your
|
convert the pixels to an associated form before returning them to your
|
||||||
application.
|
application.
|
||||||
|
|
||||||
Since it is not necessary to perform arithmetic on opaque color values so
|
Since it is not necessary to perform arithmetic on opaque color values so
|
||||||
long as they are not to be resampled and are in the final color space it is
|
long as they are not to be resampled and are in the final color space it is
|
||||||
|
|
6
dll/3rdparty/libpng/png.c
vendored
6
dll/3rdparty/libpng/png.c
vendored
|
@ -14,7 +14,7 @@
|
||||||
#include "pngpriv.h"
|
#include "pngpriv.h"
|
||||||
|
|
||||||
/* Generate a compiler error if there is an old png.h in the search path. */
|
/* Generate a compiler error if there is an old png.h in the search path. */
|
||||||
typedef png_libpng_version_1_6_38 Your_png_h_is_not_version_1_6_38;
|
typedef png_libpng_version_1_6_39 Your_png_h_is_not_version_1_6_39;
|
||||||
|
|
||||||
#ifdef __GNUC__
|
#ifdef __GNUC__
|
||||||
/* The version tests may need to be added to, but the problem warning has
|
/* The version tests may need to be added to, but the problem warning has
|
||||||
|
@ -815,7 +815,7 @@ png_get_copyright(png_const_structrp png_ptr)
|
||||||
return PNG_STRING_COPYRIGHT
|
return PNG_STRING_COPYRIGHT
|
||||||
#else
|
#else
|
||||||
return PNG_STRING_NEWLINE \
|
return PNG_STRING_NEWLINE \
|
||||||
"libpng version 1.6.38" PNG_STRING_NEWLINE \
|
"libpng version 1.6.39" PNG_STRING_NEWLINE \
|
||||||
"Copyright (c) 2018-2022 Cosmin Truta" PNG_STRING_NEWLINE \
|
"Copyright (c) 2018-2022 Cosmin Truta" PNG_STRING_NEWLINE \
|
||||||
"Copyright (c) 1998-2002,2004,2006-2018 Glenn Randers-Pehrson" \
|
"Copyright (c) 1998-2002,2004,2006-2018 Glenn Randers-Pehrson" \
|
||||||
PNG_STRING_NEWLINE \
|
PNG_STRING_NEWLINE \
|
||||||
|
@ -2710,7 +2710,7 @@ png_check_IHDR(png_const_structrp png_ptr,
|
||||||
|
|
||||||
int /* PRIVATE */
|
int /* PRIVATE */
|
||||||
png_check_fp_number(png_const_charp string, size_t size, int *statep,
|
png_check_fp_number(png_const_charp string, size_t size, int *statep,
|
||||||
png_size_tp whereami)
|
size_t *whereami)
|
||||||
{
|
{
|
||||||
int state = *statep;
|
int state = *statep;
|
||||||
size_t i = *whereami;
|
size_t i = *whereami;
|
||||||
|
|
2
dll/3rdparty/libpng/pngpriv.h
vendored
2
dll/3rdparty/libpng/pngpriv.h
vendored
|
@ -1946,7 +1946,7 @@ PNG_INTERNAL_FUNCTION(void,png_ascii_from_fixed,(png_const_structrp png_ptr,
|
||||||
* the problem character.) This has not been tested within libpng.
|
* the problem character.) This has not been tested within libpng.
|
||||||
*/
|
*/
|
||||||
PNG_INTERNAL_FUNCTION(int,png_check_fp_number,(png_const_charp string,
|
PNG_INTERNAL_FUNCTION(int,png_check_fp_number,(png_const_charp string,
|
||||||
size_t size, int *statep, png_size_tp whereami),PNG_EMPTY);
|
size_t size, int *statep, size_t *whereami),PNG_EMPTY);
|
||||||
|
|
||||||
/* This is the same but it checks a complete string and returns true
|
/* This is the same but it checks a complete string and returns true
|
||||||
* only if it just contains a floating point number. As of 1.5.4 this
|
* only if it just contains a floating point number. As of 1.5.4 this
|
||||||
|
|
4
dll/3rdparty/libpng/pngread.c
vendored
4
dll/3rdparty/libpng/pngread.c
vendored
|
@ -3762,13 +3762,13 @@ png_image_read_direct(png_voidp argument)
|
||||||
mode = PNG_ALPHA_PNG;
|
mode = PNG_ALPHA_PNG;
|
||||||
output_gamma = PNG_DEFAULT_sRGB;
|
output_gamma = PNG_DEFAULT_sRGB;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((change & PNG_FORMAT_FLAG_ASSOCIATED_ALPHA) != 0)
|
if ((change & PNG_FORMAT_FLAG_ASSOCIATED_ALPHA) != 0)
|
||||||
{
|
{
|
||||||
mode = PNG_ALPHA_OPTIMIZED;
|
mode = PNG_ALPHA_OPTIMIZED;
|
||||||
change &= ~PNG_FORMAT_FLAG_ASSOCIATED_ALPHA;
|
change &= ~PNG_FORMAT_FLAG_ASSOCIATED_ALPHA;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* If 'do_local_background' is set check for the presence of gamma
|
/* If 'do_local_background' is set check for the presence of gamma
|
||||||
* correction; this is part of the work-round for the libpng bug
|
* correction; this is part of the work-round for the libpng bug
|
||||||
* described above.
|
* described above.
|
||||||
|
|
2
dll/3rdparty/libpng/pngrutil.c
vendored
2
dll/3rdparty/libpng/pngrutil.c
vendored
|
@ -3186,7 +3186,7 @@ png_check_chunk_length(png_const_structrp png_ptr, png_uint_32 length)
|
||||||
{
|
{
|
||||||
png_debug2(0," length = %lu, limit = %lu",
|
png_debug2(0," length = %lu, limit = %lu",
|
||||||
(unsigned long)length,(unsigned long)limit);
|
(unsigned long)length,(unsigned long)limit);
|
||||||
png_chunk_error(png_ptr, "chunk data is too large");
|
png_benign_error(png_ptr, "chunk data is too large");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
8
dll/3rdparty/libpng/pngwrite.c
vendored
8
dll/3rdparty/libpng/pngwrite.c
vendored
|
@ -75,10 +75,10 @@ write_unknown_chunks(png_structrp png_ptr, png_const_inforp info_ptr,
|
||||||
* library. If you have a new chunk to add, make a function to write it,
|
* library. If you have a new chunk to add, make a function to write it,
|
||||||
* and put it in the correct location here. If you want the chunk written
|
* and put it in the correct location here. If you want the chunk written
|
||||||
* after the image data, put it in png_write_end(). I strongly encourage
|
* after the image data, put it in png_write_end(). I strongly encourage
|
||||||
* you to supply a PNG_INFO_ flag, and check info_ptr->valid before writing
|
* you to supply a PNG_INFO_<chunk> flag, and check info_ptr->valid before
|
||||||
* the chunk, as that will keep the code from breaking if you want to just
|
* writing the chunk, as that will keep the code from breaking if you want
|
||||||
* write a plain PNG file. If you have long comments, I suggest writing
|
* to just write a plain PNG file. If you have long comments, I suggest
|
||||||
* them in png_write_end(), and compressing them.
|
* writing them in png_write_end(), and compressing them.
|
||||||
*/
|
*/
|
||||||
void PNGAPI
|
void PNGAPI
|
||||||
png_write_info_before_PLTE(png_structrp png_ptr, png_const_inforp info_ptr)
|
png_write_info_before_PLTE(png_structrp png_ptr, png_const_inforp info_ptr)
|
||||||
|
|
6
dll/3rdparty/libpng/pngwutil.c
vendored
6
dll/3rdparty/libpng/pngwutil.c
vendored
|
@ -1,7 +1,7 @@
|
||||||
|
|
||||||
/* pngwutil.c - utilities to write a PNG file
|
/* pngwutil.c - utilities to write a PNG file
|
||||||
*
|
*
|
||||||
* Copyright (c) 2018 Cosmin Truta
|
* Copyright (c) 2018-2022 Cosmin Truta
|
||||||
* Copyright (c) 1998-2002,2004,2006-2018 Glenn Randers-Pehrson
|
* Copyright (c) 1998-2002,2004,2006-2018 Glenn Randers-Pehrson
|
||||||
* Copyright (c) 1996-1997 Andreas Dilger
|
* Copyright (c) 1996-1997 Andreas Dilger
|
||||||
* Copyright (c) 1995-1996 Guy Eric Schalnat, Group 42, Inc.
|
* Copyright (c) 1995-1996 Guy Eric Schalnat, Group 42, Inc.
|
||||||
|
@ -1747,7 +1747,7 @@ png_write_pCAL(png_structrp png_ptr, png_charp purpose, png_int_32 X0,
|
||||||
{
|
{
|
||||||
png_uint_32 purpose_len;
|
png_uint_32 purpose_len;
|
||||||
size_t units_len, total_len;
|
size_t units_len, total_len;
|
||||||
png_size_tp params_len;
|
size_t *params_len;
|
||||||
png_byte buf[10];
|
png_byte buf[10];
|
||||||
png_byte new_purpose[80];
|
png_byte new_purpose[80];
|
||||||
int i;
|
int i;
|
||||||
|
@ -1769,7 +1769,7 @@ png_write_pCAL(png_structrp png_ptr, png_charp purpose, png_int_32 X0,
|
||||||
png_debug1(3, "pCAL units length = %d", (int)units_len);
|
png_debug1(3, "pCAL units length = %d", (int)units_len);
|
||||||
total_len = purpose_len + units_len + 10;
|
total_len = purpose_len + units_len + 10;
|
||||||
|
|
||||||
params_len = (png_size_tp)png_malloc(png_ptr,
|
params_len = (size_t *)png_malloc(png_ptr,
|
||||||
(png_alloc_size_t)((png_alloc_size_t)nparams * (sizeof (size_t))));
|
(png_alloc_size_t)((png_alloc_size_t)nparams * (sizeof (size_t))));
|
||||||
|
|
||||||
/* Find the length of each parameter, making sure we don't count the
|
/* Find the length of each parameter, making sure we don't count the
|
||||||
|
|
|
@ -33,7 +33,7 @@ URL: http://www.ijg.org/
|
||||||
|
|
||||||
Title: libpng
|
Title: libpng
|
||||||
Path: dll/3rdparty/libpng
|
Path: dll/3rdparty/libpng
|
||||||
Used Version: 1.6.38
|
Used Version: 1.6.39
|
||||||
License: PNG Reference Library version 2
|
License: PNG Reference Library version 2
|
||||||
URL: http://libpng.sourceforge.net/
|
URL: http://libpng.sourceforge.net/
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
|
|
||||||
/* png.h - header file for PNG reference library
|
/* png.h - header file for PNG reference library
|
||||||
*
|
*
|
||||||
* libpng version 1.6.38 - September 14, 2022
|
* libpng version 1.6.39 - November 20, 2022
|
||||||
*
|
*
|
||||||
* Copyright (c) 2018-2022 Cosmin Truta
|
* Copyright (c) 2018-2022 Cosmin Truta
|
||||||
* Copyright (c) 1998-2002,2004,2006-2018 Glenn Randers-Pehrson
|
* 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.89, June 1996, through 0.96, May 1997: Andreas Dilger
|
||||||
* libpng versions 0.97, January 1998, through 1.6.35, July 2018:
|
* libpng versions 0.97, January 1998, through 1.6.35, July 2018:
|
||||||
* Glenn Randers-Pehrson
|
* Glenn Randers-Pehrson
|
||||||
* libpng versions 1.6.36, December 2018, through 1.6.38, September 2022:
|
* libpng versions 1.6.36, December 2018, through 1.6.39, November 2022:
|
||||||
* Cosmin Truta
|
* Cosmin Truta
|
||||||
* See also "Contributing Authors", below.
|
* See also "Contributing Authors", below.
|
||||||
*/
|
*/
|
||||||
|
@ -239,7 +239,7 @@
|
||||||
* ...
|
* ...
|
||||||
* 1.5.30 15 10530 15.so.15.30[.0]
|
* 1.5.30 15 10530 15.so.15.30[.0]
|
||||||
* ...
|
* ...
|
||||||
* 1.6.38 16 10638 16.so.16.38[.0]
|
* 1.6.39 16 10639 16.so.16.39[.0]
|
||||||
*
|
*
|
||||||
* Henceforth the source version will match the shared-library major and
|
* Henceforth the source version will match the shared-library major and
|
||||||
* minor numbers; the shared-library major version number will be used for
|
* minor numbers; the shared-library major version number will be used for
|
||||||
|
@ -278,8 +278,8 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Version information for png.h - this should match the version in png.c */
|
/* Version information for png.h - this should match the version in png.c */
|
||||||
#define PNG_LIBPNG_VER_STRING "1.6.38"
|
#define PNG_LIBPNG_VER_STRING "1.6.39"
|
||||||
#define PNG_HEADER_VERSION_STRING " libpng version 1.6.38 - September 14, 2022\n"
|
#define PNG_HEADER_VERSION_STRING " libpng version 1.6.39 - November 20, 2022\n"
|
||||||
|
|
||||||
#define PNG_LIBPNG_VER_SONUM 16
|
#define PNG_LIBPNG_VER_SONUM 16
|
||||||
#define PNG_LIBPNG_VER_DLLNUM 16
|
#define PNG_LIBPNG_VER_DLLNUM 16
|
||||||
|
@ -287,7 +287,7 @@
|
||||||
/* These should match the first 3 components of PNG_LIBPNG_VER_STRING: */
|
/* These should match the first 3 components of PNG_LIBPNG_VER_STRING: */
|
||||||
#define PNG_LIBPNG_VER_MAJOR 1
|
#define PNG_LIBPNG_VER_MAJOR 1
|
||||||
#define PNG_LIBPNG_VER_MINOR 6
|
#define PNG_LIBPNG_VER_MINOR 6
|
||||||
#define PNG_LIBPNG_VER_RELEASE 38
|
#define PNG_LIBPNG_VER_RELEASE 39
|
||||||
|
|
||||||
/* This should be zero for a public release, or non-zero for a
|
/* This should be zero for a public release, or non-zero for a
|
||||||
* development version. [Deprecated]
|
* development version. [Deprecated]
|
||||||
|
@ -318,7 +318,7 @@
|
||||||
* From version 1.0.1 it is:
|
* From version 1.0.1 it is:
|
||||||
* XXYYZZ, where XX=major, YY=minor, ZZ=release
|
* XXYYZZ, where XX=major, YY=minor, ZZ=release
|
||||||
*/
|
*/
|
||||||
#define PNG_LIBPNG_VER 10638 /* 1.6.38 */
|
#define PNG_LIBPNG_VER 10639 /* 1.6.39 */
|
||||||
|
|
||||||
/* Library configuration: these options cannot be changed after
|
/* Library configuration: these options cannot be changed after
|
||||||
* the library has been built.
|
* 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
|
/* This triggers a compiler error in png.c, if png.c and png.h
|
||||||
* do not agree upon the version number.
|
* do not agree upon the version number.
|
||||||
*/
|
*/
|
||||||
typedef char* png_libpng_version_1_6_38;
|
typedef char* png_libpng_version_1_6_39;
|
||||||
|
|
||||||
/* Basic control structions. Read libpng-manual.txt or libpng.3 for more info.
|
/* Basic control structions. Read libpng-manual.txt or libpng.3 for more info.
|
||||||
*
|
*
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
|
|
||||||
/* pngconf.h - machine-configurable file for libpng
|
/* pngconf.h - machine-configurable file for libpng
|
||||||
*
|
*
|
||||||
* libpng version 1.6.38
|
* libpng version 1.6.39
|
||||||
*
|
*
|
||||||
* Copyright (c) 2018-2022 Cosmin Truta
|
* Copyright (c) 2018-2022 Cosmin Truta
|
||||||
* Copyright (c) 1998-2002,2004,2006-2016,2018 Glenn Randers-Pehrson
|
* Copyright (c) 1998-2002,2004,2006-2016,2018 Glenn Randers-Pehrson
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* pnglibconf.h - library build configuration */
|
/* pnglibconf.h - library build configuration */
|
||||||
|
|
||||||
/* libpng version 1.6.38 */
|
/* libpng version 1.6.39 */
|
||||||
|
|
||||||
/* Copyright (c) 2018-2022 Cosmin Truta */
|
/* Copyright (c) 2018-2022 Cosmin Truta */
|
||||||
/* Copyright (c) 1998-2002,2004,2006-2018 Glenn Randers-Pehrson */
|
/* Copyright (c) 1998-2002,2004,2006-2018 Glenn Randers-Pehrson */
|
||||||
|
|
Loading…
Reference in a new issue