Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b96b07f

Browse files
committed
3rdparty: update libpng 1.6.43
1 parent 1d9a412 commit b96b07f

31 files changed

+2098
-759
lines changed

3rdparty/libpng/CHANGES

Lines changed: 105 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ Version 0.97 [January, 1998]
204204
Added simple sRGB support (Glenn R-P)
205205
Easier conditional compiling, e.g.,
206206
define PNG_READ/WRITE_NOT_FULLY_SUPPORTED;
207-
all configurable options can be selected from command-line instead
207+
all configurable options can be selected from command line instead
208208
of having to edit pngconf.h (Glenn R-P)
209209
Fixed memory leak in pngwrite.c (free info_ptr->text) (Glenn R-P)
210210
Added more conditions for png_do_background, to avoid changing
@@ -942,7 +942,7 @@ Version 1.0.8 [July 24, 2000]
942942
Version 1.0.9beta1 [November 10, 2000]
943943
Fixed typo in scripts/makefile.hpux
944944
Updated makevms.com in scripts and contrib/* and contrib/* (Martin Zinser)
945-
Fixed seqence-point bug in contrib/pngminus/png2pnm (Martin Zinser)
945+
Fixed sequence-point bug in contrib/pngminus/png2pnm (Martin Zinser)
946946
Changed "cdrom.com" in documentation to "libpng.org"
947947
Revised pnggccrd.c to get it all working, and updated makefile.gcmmx (Greg).
948948
Changed type of "params" from voidp to png_voidp in png_read|write_png().
@@ -2295,7 +2295,7 @@ Version 1.4.0beta58 [May 14, 2009]
22952295
Clarified usage of sig_bit versus sig_bit_p in example.c (Vincent Torri)
22962296

22972297
Version 1.4.0beta59 [May 15, 2009]
2298-
Reformated sources in libpng style (3-space intentation, comment format)
2298+
Reformatted sources in libpng style (3-space indentation, comment format)
22992299
Fixed typo in libpng docs (PNG_FILTER_AVE should be PNG_FILTER_AVG)
23002300
Added sections about the git repository and our coding style to the
23012301
documentation
@@ -2661,7 +2661,7 @@ Version 1.4.1beta06 [January 28, 2010]
26612661

26622662
Version 1.4.1beta07 [February 6, 2010]
26632663
Folded some long lines in the source files.
2664-
Added defineable PNG_USER_CHUNK_CACHE_MAX, PNG_USER_CHUNK_MALLOC_MAX,
2664+
Added definable PNG_USER_CHUNK_CACHE_MAX, PNG_USER_CHUNK_MALLOC_MAX,
26652665
and a PNG_USER_LIMITS_SUPPORTED flag.
26662666
Eliminated use of png_ptr->irowbytes and reused the slot in png_ptr as
26672667
png_ptr->png_user_chunk_malloc_max.
@@ -3886,7 +3886,7 @@ Version 1.6.0beta06 [January 24, 2012]
38863886
Version 1.6.0beta07 [January 28, 2012]
38873887
Eliminated Intel icc/icl compiler warnings. The Intel (GCC derived)
38883888
compiler issues slightly different warnings from those issued by the
3889-
current vesions of GCC. This eliminates those warnings by
3889+
current versions of GCC. This eliminates those warnings by
38903890
adding/removing casts and small code rewrites.
38913891
Updated configure.ac from autoupdate: added --enable-werror option.
38923892
Also some layout regularization and removal of introduced tab characters
@@ -3919,7 +3919,7 @@ Version 1.6.0beta08 [February 1, 2012]
39193919
version checking to configure.ac
39203920
Improved pngstest speed by not doing redundant tests and add const to
39213921
the background parameter of png_image_finish_read. The --background
3922-
option is now done automagically only when required, so that commandline
3922+
option is now done automagically only when required, so that command-line
39233923
option no longer exists.
39243924
Cleaned up pngpriv.h to consistently declare all functions and data.
39253925
Also eliminated PNG_CONST_DATA, which is apparently not needed but we
@@ -4052,7 +4052,7 @@ Version 1.6.0beta16 [March 6, 2012]
40524052
(in fact this is harmless, but the PNG data produced may be sub-optimal).
40534053

40544054
Version 1.6.0beta17 [March 10, 2012]
4055-
Fixed PNG_LIBPNG_BUILD_BASE_TYPE definition.
4055+
Fixed PNG_LIBPNG_BUILD_BASE_TYPE definition.
40564056
Reject all iCCP chunks after the first, even if the first one is invalid.
40574057
Deflate/inflate was reworked to move common zlib calls into single
40584058
functions [rw]util.c. A new shared keyword check routine was also added
@@ -4962,7 +4962,7 @@ Version 1.6.13beta01 [July 4, 2014]
49624962
Changed "if defined(__ARM_NEON__)" to
49634963
"if (defined(__ARM_NEON__) || defined(__ARM_NEON))" (James Wu).
49644964
Fixed clang no-warning builds: png_digit was defined but never used.
4965-
4965+
49664966
Version 1.6.13beta02 [July 21, 2014]
49674967
Fixed an incorrect separator ("/" should be "\") in scripts/makefile.vcwin32
49684968
(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]
54535453
Version 1.6.21beta02 [December 14, 2015]
54545454
Moved png_check_keyword() from pngwutil.c to pngset.c
54555455
Removed LE/BE dependencies in pngvalid, to 'fix' the current problem
5456-
in the BigEndian tests by not testing it, making the BE code the same
5456+
in the BigEndian tests by not testing it, making the BE code the same
54575457
as the LE version.
54585458
Fixes to pngvalid for various reduced build configurations (eliminate unused
54595459
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]
55175517
Added a common-law trademark notice and export control information
55185518
to the LICENSE file, png.h, and the man page.
55195519
Restored "& 0xff" in png_save_uint_16() and png_save_uint_32() that
5520-
were accidentally removed from libpng-1.6.17.
5520+
were accidentally removed from libpng-1.6.17.
55215521
Changed PNG_INFO_cHNK and PNG_FREE_cHNK from 0xnnnn to 0xnnnnU in png.h
55225522
(Robert C. Seacord).
55235523
Removed dubious "#if INT_MAX" test from png.h that was added to
@@ -5927,7 +5927,7 @@ Version 1.6.32beta03 [August 2, 2017]
59275927
(Bug report from the OSS-fuzz project).
59285928

59295929
Version 1.6.32beta04 [August 2, 2017]
5930-
Replaced local eXIf_buf with info_ptr-eXIf_buf in png_handle_eXIf().
5930+
Replaced local eXIf_buf with info_ptr->eXIf_buf in png_handle_eXIf().
59315931
Update libpng.3 and libpng-manual.txt about eXIf functions.
59325932

59335933
Version 1.6.32beta05 [August 2, 2017]
@@ -5950,7 +5950,7 @@ Version 1.6.32beta09 [August 3, 2017]
59505950
Require cmake-2.8.8 in CMakeLists.txt. Revised symlink creation,
59515951
no longer using deprecated cmake LOCATION feature (Clifford Yapp).
59525952
Fixed five-byte error in the calculation of IDAT maximum possible size.
5953-
5953+
59545954
Version 1.6.32beta10 [August 5, 2017]
59555955
Moved chunk-length check into a png_check_chunk_length() private
59565956
function (Suggested by Max Stepin).
@@ -6103,6 +6103,99 @@ Version 1.6.37 [April 14, 2019]
61036103
Added makefiles for AddressSanitizer-enabled builds.
61046104
Cleaned up various makefiles.
61056105

6106+
Version 1.6.38 [September 14, 2022]
6107+
Added configurations and scripts for continuous integration.
6108+
Fixed various errors in the handling of tRNS, hIST and eXIf.
6109+
Implemented many stability improvements across all platforms.
6110+
Updated the internal documentation.
6111+
6112+
Version 1.6.39 [November 20, 2022]
6113+
Changed the error handler of oversized chunks (i.e. larger than
6114+
PNG_USER_CHUNK_MALLOC_MAX) from png_chunk_error to png_benign_error.
6115+
Fixed a buffer overflow error in contrib/tools/pngfix.
6116+
Fixed a memory leak (CVE-2019-6129) in contrib/tools/pngcp.
6117+
Disabled the ARM Neon optimizations by default in the CMake file,
6118+
following the default behavior of the configure script.
6119+
Allowed configure.ac to work with the trunk version of autoconf.
6120+
Removed the support for "install" targets from the legacy makefiles;
6121+
removed the obsolete makefile.cegcc.
6122+
Cleaned up the code and updated the internal documentation.
6123+
6124+
Version 1.6.40 [June 21, 2023]
6125+
Fixed the eXIf chunk multiplicity checks.
6126+
Fixed a memory leak in pCAL processing.
6127+
Corrected the validity report about tRNS inside png_get_valid().
6128+
Fixed various build issues on *BSD, Mac and Windows.
6129+
Updated the configurations and the scripts for continuous integration.
6130+
Cleaned up the code, the build scripts, and the documentation.
6131+
6132+
Version 1.6.41 [January 24, 2024]
6133+
Added SIMD-optimized code for the LoongArch LSX hardware.
6134+
(Contributed by GuXiWei, JinBo and ZhangLixia)
6135+
Fixed the run-time discovery of MIPS MSA hardware.
6136+
(Contributed by Sui Jingfeng)
6137+
Fixed an off-by-one error in the function png_do_check_palette_indexes(),
6138+
which failed to recognize errors that might have existed in the first
6139+
column of a broken palette-encoded image. This was a benign regression
6140+
accidentally introduced in libpng-1.6.33. No pixel was harmed.
6141+
(Contributed by Adam Richter; reviewed by John Bowler)
6142+
Fixed, improved and modernized the contrib/pngminus programs, i.e.,
6143+
png2pnm.c and pnm2png.c
6144+
Removed old and peculiar portability hacks that were meant to silence
6145+
warnings issued by gcc version 7.1 alone.
6146+
(Contributed by John Bowler)
6147+
Fixed and modernized the CMake file, and raised the minimum required
6148+
CMake version from 3.1 to 3.6.
6149+
(Contributed by Clinton Ingram, Timothy Lyanguzov, Tyler Kropp, et al.)
6150+
Allowed the configure script to disable the building of auxiliary tools
6151+
and tests, thus catching up with the CMake file.
6152+
(Contributed by Carlo Bramini)
6153+
Fixed a build issue on Mac.
6154+
(Contributed by Zixu Wang)
6155+
Moved the Autoconf macro files to scripts/autoconf.
6156+
Moved the CMake files (except for the main CMakeLists.txt) to
6157+
scripts/cmake and moved the list of their contributing authors to
6158+
scripts/cmake/AUTHORS.md
6159+
Updated the CI configurations and scripts.
6160+
Relicensed the CI scripts to the MIT License.
6161+
Improved the test coverage.
6162+
(Contributed by John Bowler)
6163+
6164+
Version 1.6.42 [January 29, 2024]
6165+
Fixed the implementation of the macro function png_check_sig().
6166+
This was an API regression, introduced in libpng-1.6.41.
6167+
(Reported by Matthieu Darbois)
6168+
Fixed and updated the libpng manual.
6169+
6170+
Version 1.6.43 [February 23, 2024]
6171+
Fixed the row width check in png_check_IHDR().
6172+
This corrected a bug that was specific to the 16-bit platforms,
6173+
and removed a spurious compiler warning from the 64-bit builds.
6174+
(Reported by Jacek Caban; fixed by John Bowler)
6175+
Added eXIf chunk support to the push-mode reader in pngpread.c.
6176+
(Contributed by Chris Blume)
6177+
Added contrib/pngexif for the benefit of the users who would like
6178+
to inspect the content of eXIf chunks.
6179+
Added contrib/conftest/basic.dfa, a basic build-time configuration.
6180+
(Contributed by John Bowler)
6181+
Fixed a preprocessor condition in pngread.c that broke build-time
6182+
configurations like contrib/conftest/pngcp.dfa.
6183+
(Contributed by John Bowler)
6184+
Added CMake build support for LoongArch LSX.
6185+
(Contributed by GuXiWei)
6186+
Fixed a CMake build error that occurred under a peculiar state of the
6187+
dependency tree. This was a regression introduced in libpng-1.6.41.
6188+
(Contributed by Dan Rosser)
6189+
Marked the installed libpng headers as system headers in CMake.
6190+
(Contributed by Benjamin Buch)
6191+
Updated the build support for RISCOS.
6192+
(Contributed by Cameron Cawley)
6193+
Updated the makefiles to allow cross-platform builds to initialize
6194+
conventional make variables like AR and ARFLAGS.
6195+
Added various improvements to the CI scripts in areas like version
6196+
consistency verification and text linting.
6197+
Added version consistency verification to pngtest.c also.
6198+
61066199
Send comments/corrections/commendations to png-mng-implement at lists.sf.net.
61076200
Subscription is required; visit
61086201
https://lists.sourceforge.net/lists/listinfo/png-mng-implement

0 commit comments

Comments
 (0)