Skip to content

Commit 2aabc61

Browse files
author
Akira Kakuto
committed
libpng 1.6.57
git-svn-id: svn://tug.org/texlive/trunk/Build/source@78651 c570f23f-e606-0410-a88d-b1316a301751
1 parent 3a7eeac commit 2aabc61

30 files changed

Lines changed: 816 additions & 99 deletions

libs/README

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ icu 78.2 - checked 21jan26
3737
libpaper 1.1.29 - checked 07jan24
3838
https://ftp.debian.org/debian/pool/main/libp/libpaper/
3939

40-
libpng 1.6.56 - checked 26mar26
40+
libpng 1.6.57 - checked 10apr26
4141
https://sourceforge.net/projects/libpng/files/ - used by many
4242

4343
lua 5.3.6 - checked 04oct20

libs/libpng/ChangeLog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
2026-04-10 Akira Kakuto <kakuto@jcom.zaq.ne.jp>
2+
3+
Import libpng-1.6.57.
4+
* version.ac: Adjust.
5+
16
2026-03-26 Akira Kakuto <kakuto@jcom.zaq.ne.jp>
27

38
Import libpng-1.6.56.

libs/libpng/README

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Building libpng-1.6.56 as part of the TL tree
1+
Building libpng-1.6.57 as part of the TL tree
22
=============================================
33

44
This directory libs/libpng/ uses a proxy Makefile.am to build the libpng library
@@ -14,4 +14,4 @@ copied to libs/libpng/configure.ac.
1414
=============================
1515

1616
2009-07-23 Peter Breitenlohner <peb@mppmu.mpg.de>
17-
2026-03-26 Akira Kakuto <kakuto@jcom.zaq.ne.jp>
17+
2026-04-10 Akira Kakuto <kakuto@jcom.zaq.ne.jp>

libs/libpng/TLpatches/ChangeLog

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2026-04-10 Akira Kakuto <kakuto@jcom.zaq.ne.jp>
2+
3+
Import libpng-1.6.57.
4+
15
2026-03-26 Akira Kakuto <kakuto@jcom.zaq.ne.jp>
26

37
Import libpng-1.6.56.

libs/libpng/TLpatches/TL-Changes

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
Changes applied to the libpng-1.6.56/ tree as obtained from:
2-
https://sourceforge.net/projects/libpng/files/libpng16/1.6.56/
1+
Changes applied to the libpng-1.6.57/ tree as obtained from:
2+
https://sourceforge.net/projects/libpng/files/libpng16/1.6.57/
33

44
Copied:
55
scripts/pnglibconf.h.prebuilt -> pnglibconf.h

libs/libpng/configure

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#! /bin/sh
22
# Guess values for system-dependent variables and create Makefiles.
3-
# Generated by GNU Autoconf 2.72 for libpng (TeX Live) 1.6.56.
3+
# Generated by GNU Autoconf 2.72 for libpng (TeX Live) 1.6.57.
44
#
55
# Report bugs to <tex-k@tug.org>.
66
#
@@ -604,8 +604,8 @@ MAKEFLAGS=
604604
# Identity of this package.
605605
PACKAGE_NAME='libpng (TeX Live)'
606606
PACKAGE_TARNAME='libpng--tex-live-'
607-
PACKAGE_VERSION='1.6.56'
608-
PACKAGE_STRING='libpng (TeX Live) 1.6.56'
607+
PACKAGE_VERSION='1.6.57'
608+
PACKAGE_STRING='libpng (TeX Live) 1.6.57'
609609
PACKAGE_BUGREPORT='tex-k@tug.org'
610610
PACKAGE_URL=''
611611

@@ -1342,7 +1342,7 @@ if test "$ac_init_help" = "long"; then
13421342
# Omit some internal or obsolete options to make the list less imposing.
13431343
# This message is too long to be a string in the A/UX 3.1 sh.
13441344
cat <<_ACEOF
1345-
'configure' configures libpng (TeX Live) 1.6.56 to adapt to many kinds of systems.
1345+
'configure' configures libpng (TeX Live) 1.6.57 to adapt to many kinds of systems.
13461346
13471347
Usage: $0 [OPTION]... [VAR=VALUE]...
13481348
@@ -1414,7 +1414,7 @@ fi
14141414

14151415
if test -n "$ac_init_help"; then
14161416
case $ac_init_help in
1417-
short | recursive ) echo "Configuration of libpng (TeX Live) 1.6.56:";;
1417+
short | recursive ) echo "Configuration of libpng (TeX Live) 1.6.57:";;
14181418
esac
14191419
cat <<\_ACEOF
14201420
@@ -1534,7 +1534,7 @@ fi
15341534
test -n "$ac_init_help" && exit $ac_status
15351535
if $ac_init_version; then
15361536
cat <<\_ACEOF
1537-
libpng (TeX Live) configure 1.6.56
1537+
libpng (TeX Live) configure 1.6.57
15381538
generated by GNU Autoconf 2.72
15391539
15401540
Copyright (C) 2023 Free Software Foundation, Inc.
@@ -1861,7 +1861,7 @@ cat >config.log <<_ACEOF
18611861
This file contains any messages produced by compilers while
18621862
running configure, to aid debugging if configure makes a mistake.
18631863
1864-
It was created by libpng (TeX Live) $as_me 1.6.56, which was
1864+
It was created by libpng (TeX Live) $as_me 1.6.57, which was
18651865
generated by GNU Autoconf 2.72. Invocation command line was
18661866
18671867
$ $0$ac_configure_args_raw
@@ -4829,7 +4829,7 @@ fi
48294829

48304830
# Define the identity of the package.
48314831
PACKAGE='libpng--tex-live-'
4832-
VERSION='1.6.56'
4832+
VERSION='1.6.57'
48334833

48344834

48354835
printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
@@ -8130,7 +8130,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
81308130
# report actual input values of CONFIG_FILES etc. instead of their
81318131
# values after options handling.
81328132
ac_log="
8133-
This file was extended by libpng (TeX Live) $as_me 1.6.56, which was
8133+
This file was extended by libpng (TeX Live) $as_me 1.6.57, which was
81348134
generated by GNU Autoconf 2.72. Invocation command line was
81358135
81368136
CONFIG_FILES = $CONFIG_FILES
@@ -8198,7 +8198,7 @@ ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\
81988198
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
81998199
ac_cs_config='$ac_cs_config_escaped'
82008200
ac_cs_version="\\
8201-
libpng (TeX Live) config.status 1.6.56
8201+
libpng (TeX Live) config.status 1.6.57
82028202
configured by $0, generated by GNU Autoconf 2.72,
82038203
with options \\"\$ac_cs_config\\"
82048204

libs/libpng/libpng-src/ANNOUNCE

Lines changed: 16 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
libpng 1.6.56 - March 25, 2026
2-
==============================
1+
libpng 1.6.57 - April 8, 2026
2+
=============================
33

44
This is a public release of libpng, intended for use in production code.
55

@@ -9,10 +9,10 @@ Files available for download
99

1010
Source files:
1111

12-
* libpng-1.6.56.tar.xz (LZMA-compressed, recommended)
13-
* libpng-1.6.56.tar.gz (deflate-compressed)
14-
* lpng1656.7z (LZMA-compressed)
15-
* lpng1656.zip (deflate-compressed)
12+
* libpng-1.6.57.tar.xz (LZMA-compressed, recommended)
13+
* libpng-1.6.57.tar.gz (deflate-compressed)
14+
* lpng1657.7z (LZMA-compressed)
15+
* lpng1657.zip (deflate-compressed)
1616

1717
Other information:
1818

@@ -22,38 +22,18 @@ Other information:
2222
* TRADEMARK.md
2323

2424

25-
Changes from version 1.6.55 to version 1.6.56
25+
Changes from version 1.6.56 to version 1.6.57
2626
---------------------------------------------
2727

28-
* Fixed CVE-2026-33416 (high severity):
29-
Use-after-free via pointer aliasing in `png_set_tRNS` and `png_set_PLTE`.
30-
(Reported by Halil Oktay and Ryo Shimada;
31-
fixed by Halil Oktay and Cosmin Truta.)
32-
* Fixed CVE-2026-33636 (high severity):
33-
Out-of-bounds read/write in the palette expansion on ARM Neon.
34-
(Reported by Taegu Ha; fixed by Taegu Ha and Cosmin Truta.)
35-
* Fixed uninitialized reads beyond `num_trans` in `trans_alpha` buffers.
36-
(Contributed by Halil Oktay.)
37-
* Fixed stale `info_ptr->palette` after in-place gamma and background
38-
transforms.
39-
* Fixed wrong channel indices in `png_image_read_and_map` RGB_ALPHA path.
40-
(Contributed by Yuelin Wang.)
41-
* Fixed wrong background color in colormap read.
42-
(Contributed by Yuelin Wang.)
43-
* Fixed dead loop in sPLT write.
44-
(Contributed by Yuelin Wang.)
45-
* Added missing null pointer checks in four public API functions.
46-
(Contributed by Yuelin Wang.)
47-
* Validated shift bit depths in `png_set_shift` to prevent infinite loop.
48-
(Contributed by Yuelin Wang.)
49-
* Avoided undefined behavior in library and tests.
50-
* Deprecated the hardly-ever-tested POINTER_INDEXING config option.
51-
* Added negative-stride test coverage for the simplified API.
52-
* Fixed memory leaks and API misuse in oss-fuzz.
53-
(Contributed by Owen Sanzas.)
54-
* Implemented various fixes and improvements in oss-fuzz.
55-
(Contributed by Bob Friesenhahn and Philippe Antoine.)
56-
* Performed various refactorings and cleanups.
28+
* Fixed CVE-2026-34757 (medium severity):
29+
Use-after-free in `png_set_PLTE`, `png_set_tRNS` and `png_set_hIST`
30+
leading to corrupted chunk data and potential heap information disclosure.
31+
Also hardened the append-style setters (`png_set_text`, `png_set_sPLT`,
32+
`png_set_unknown_chunks`) against a theoretical variant of the same
33+
aliasing pattern.
34+
(Reported by Iv4n <Iv4n550@users.noreply.github.com>.)
35+
* Fixed integer overflow in rowbytes computation in read transforms.
36+
(Contributed by Mohammad Seet.)
5737

5838

5939
Send comments/corrections/commendations to png-mng-implement at lists.sf.net.

libs/libpng/libpng-src/AUTHORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ Authors, for copyright and licensing purposes.
2727
* Mans Rullgard
2828
* Matt Sarett
2929
* Mike Klein
30+
* Mohammad Seet
3031
* Pascal Massimino
3132
* Paul Schmidt
3233
* Petr Simecek

libs/libpng/libpng-src/CHANGES

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6368,6 +6368,17 @@ Version 1.6.56 [March 25, 2026]
63686368
(Contributed by Bob Friesenhahn and Philippe Antoine.)
63696369
Performed various refactorings and cleanups.
63706370

6371+
Version 1.6.57 [April 8, 2026]
6372+
Fixed CVE-2026-34757 (medium severity):
6373+
Use-after-free in `png_set_PLTE`, `png_set_tRNS` and `png_set_hIST`
6374+
leading to corrupted chunk data and potential heap information disclosure.
6375+
Also hardened the append-style setters (`png_set_text`, `png_set_sPLT`,
6376+
`png_set_unknown_chunks`) against a theoretical variant of the same
6377+
aliasing pattern.
6378+
(Reported by Iv4n <Iv4n550@users.noreply.github.com>.)
6379+
Fixed integer overflow in rowbytes computation in read transforms.
6380+
(Contributed by Mohammad Seet.)
6381+
63716382
Send comments/corrections/commendations to png-mng-implement at lists.sf.net.
63726383
Subscription is required; visit
63736384
<https://lists.sourceforge.net/lists/listinfo/png-mng-implement>

libs/libpng/libpng-src/CMakeLists.txt

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ cmake_minimum_required(VERSION 3.14...4.2)
1818

1919
set(PNGLIB_MAJOR 1)
2020
set(PNGLIB_MINOR 6)
21-
set(PNGLIB_REVISION 56)
21+
set(PNGLIB_REVISION 57)
2222
set(PNGLIB_SUBREVISION 0)
2323
#set(PNGLIB_SUBREVISION "git")
2424
set(PNGLIB_VERSION ${PNGLIB_MAJOR}.${PNGLIB_MINOR}.${PNGLIB_REVISION})
@@ -624,6 +624,9 @@ set(pngvalid_sources
624624
set(pngstest_sources
625625
contrib/libtests/pngstest.c
626626
)
627+
set(pnggetset_sources
628+
contrib/libtests/pnggetset.c
629+
)
627630
set(pngunknown_sources
628631
contrib/libtests/pngunknown.c
629632
)
@@ -786,6 +789,15 @@ if(PNG_TESTS AND PNG_SHARED)
786789
COMMAND pngtest
787790
FILES "${TEST_PNG3_PNGS}")
788791

792+
# pnggetset test:
793+
# Getter-to-setter roundtrips for various chunk types.
794+
add_executable(pnggetset ${pnggetset_sources})
795+
target_link_libraries(pnggetset
796+
PRIVATE png_shared)
797+
798+
png_add_test(NAME pnggetset
799+
COMMAND pnggetset)
800+
789801
# pngvalid tests:
790802
# Internal validation of standard and progressive reading,
791803
# transforms, and gamma handling.

0 commit comments

Comments
 (0)