Skip to content

Commit d609d6d

Browse files
committed
[libpng] Update: v1.6.57 -> v1.6.58
Includes the APNG patch.
1 parent 0f229e4 commit d609d6d

File tree

18 files changed

+65
-67
lines changed

18 files changed

+65
-67
lines changed

extlib/libpng/ANNOUNCE

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
libpng 1.6.57 - April 8, 2026
2-
=============================
1+
libpng 1.6.58 - April 15, 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.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)
12+
* libpng-1.6.58.tar.xz (LZMA-compressed, recommended)
13+
* libpng-1.6.58.tar.gz (deflate-compressed)
14+
* lpng1658.7z (LZMA-compressed)
15+
* lpng1658.zip (deflate-compressed)
1616

1717
Other information:
1818

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

2424

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

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.)
28+
* Fixed a regression introduced in version 1.6.56 that caused `png_get_PLTE`
29+
to return stale palette data after applying gamma and background transforms
30+
in-place.
31+
(Reported by ralfjunker <ralfjunker@users.noreply.github.com>.)
3732

3833

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

extlib/libpng/CHANGES

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6379,6 +6379,13 @@ Version 1.6.57 [April 8, 2026]
63796379
Fixed integer overflow in rowbytes computation in read transforms.
63806380
(Contributed by Mohammad Seet.)
63816381

6382+
Version 1.6.58 [April 15, 2026]
6383+
Fixed a regression introduced in version 1.6.56 that caused `png_get_PLTE`
6384+
to return stale palette data after applying gamma and background transforms
6385+
in-place.
6386+
(Reported by ralfjunker <ralfjunker@users.noreply.github.com>.)
6387+
6388+
63826389
Send comments/corrections/commendations to png-mng-implement at lists.sf.net.
63836390
Subscription is required; visit
63846391
<https://lists.sourceforge.net/lists/listinfo/png-mng-implement>

extlib/libpng/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ ENDIF(0)
2020

2121
set(PNGLIB_MAJOR 1)
2222
set(PNGLIB_MINOR 6)
23-
set(PNGLIB_REVISION 57)
23+
set(PNGLIB_REVISION 58)
2424
set(PNGLIB_SUBREVISION 0)
2525
#set(PNGLIB_SUBREVISION "git")
2626
set(PNGLIB_VERSION ${PNGLIB_MAJOR}.${PNGLIB_MINOR}.${PNGLIB_REVISION})

extlib/libpng/README

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
README for libpng version 1.6.57
1+
README for libpng version 1.6.58
22
================================
33

44
See the note about version numbers near the top of `png.h`.

extlib/libpng/_MODIFIED_LIBPNG.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
This copy of libpng-1.6.57 is a modified version of the original.
1+
This copy of libpng-1.6.58 is a modified version of the original.
22

3-
commit 95ab3fdca83ea294efd3b092e9a53c5a39886444
4-
Release libpng version 1.6.57
3+
commit 3061454d980de7d53608f594194cfac722721d2a
4+
Release libpng version 1.6.58
55

6-
Tag: v1.6.57
6+
Tag: v1.6.58
77

88
The following changes have been made to the original:
99

@@ -14,5 +14,5 @@ The following changes have been made to the original:
1414
- APNG support has been added via the APNG patch:
1515
http://sourceforge.net/projects/libpng-apng/
1616

17-
To obtain the original libpng-1.6.57, visit:
17+
To obtain the original libpng-1.6.58, visit:
1818
http://www.libpng.org/pub/png/libpng.html

extlib/libpng/libpng-manual.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ libpng-manual.txt - A description on how to use and modify libpng
99

1010
Based on:
1111

12-
libpng version 1.6.36, December 2018, through 1.6.57 - April 2026
12+
libpng version 1.6.36, December 2018, through 1.6.58 - April 2026
1313
Updated and distributed by Cosmin Truta
1414
Copyright (c) 2018-2026 Cosmin Truta
1515

extlib/libpng/libpng.3

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
.TH LIBPNG 3 "April 8, 2026"
1+
.TH LIBPNG 3 "April 15, 2026"
22
.SH NAME
3-
libpng \- Portable Network Graphics (PNG) Reference Library 1.6.57
3+
libpng \- Portable Network Graphics (PNG) Reference Library 1.6.58
44

55
.SH SYNOPSIS
66
\fB#include <png.h>\fP
@@ -528,7 +528,7 @@ libpng-manual.txt - A description on how to use and modify libpng
528528

529529
Based on:
530530

531-
libpng version 1.6.36, December 2018, through 1.6.57 - April 2026
531+
libpng version 1.6.36, December 2018, through 1.6.58 - April 2026
532532
Updated and distributed by Cosmin Truta
533533
Copyright (c) 2018-2026 Cosmin Truta
534534

extlib/libpng/libpngpf.3

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
.TH LIBPNGPF 3 "April 8, 2026"
1+
.TH LIBPNGPF 3 "April 15, 2026"
22
.SH NAME
3-
libpng \- Portable Network Graphics (PNG) Reference Library 1.6.57
3+
libpng \- Portable Network Graphics (PNG) Reference Library 1.6.58
44

55
.SH SYNOPSIS
66
\fB#include "pngpriv.h"\fP

extlib/libpng/png.5

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.TH PNG 5 "April 8, 2026"
1+
.TH PNG 5 "April 15, 2026"
22
.SH NAME
33
png \- Portable Network Graphics (PNG) format
44

extlib/libpng/png.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#include "pngpriv.h"
1414

1515
/* Generate a compiler error if there is an old png.h in the search path. */
16-
typedef png_libpng_version_1_6_57 Your_png_h_is_not_version_1_6_57;
16+
typedef png_libpng_version_1_6_58 Your_png_h_is_not_version_1_6_58;
1717

1818
/* Sanity check the chunks definitions - PNG_KNOWN_CHUNKS from pngpriv.h and the
1919
* corresponding macro definitions. This causes a compile time failure if
@@ -820,7 +820,7 @@ png_get_copyright(png_const_structrp png_ptr)
820820
return PNG_STRING_COPYRIGHT
821821
#else
822822
return PNG_STRING_NEWLINE \
823-
"libpng version 1.6.57" PNG_STRING_NEWLINE \
823+
"libpng version 1.6.58" PNG_STRING_NEWLINE \
824824
"Copyright (c) 2018-2026 Cosmin Truta" PNG_STRING_NEWLINE \
825825
"Copyright (c) 1998-2002,2004,2006-2018 Glenn Randers-Pehrson" \
826826
PNG_STRING_NEWLINE \

0 commit comments

Comments
 (0)