Skip to content

Commit 4339f0f

Browse files
Merge pull request #626 from espressif/fix/libpng_security
fix(libpng): Update to version 1.6.51
2 parents 4181ca4 + 46247ff commit 4339f0f

File tree

4 files changed

+37
-10
lines changed

4 files changed

+37
-10
lines changed

libpng/idf_component.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1-
version: "1.6.39~1"
1+
version: "1.6.51"
22
description: Portable Network Graphics(png) C library
33
url: https://github.com/espressif/idf-extra-components/tree/master/libpng
44
repository: "https://github.com/espressif/idf-extra-components.git"
5+
repository_info:
6+
path: "libpng"
57
documentation: "http://www.libpng.org/pub/png/pngdocs.html"
68
issues: "https://github.com/espressif/idf-extra-components/issues"
79
dependencies:
8-
idf: ">=4.4"
10+
idf: ">=5.0"
911
zlib:
1012
version: "^1.2.13"
1113
override_path: "../zlib"

libpng/libpng

libpng/pnglibconf.h

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/* pnglibconf.h - library build configuration */
22

3-
/* libpng version 1.6.40.git */
3+
/* libpng version 1.6.51 */
44

5-
/* Copyright (c) 2018-2023 Cosmin Truta */
5+
/* Copyright (c) 2018-2025 Cosmin Truta */
66
/* Copyright (c) 1998-2002,2004,2006-2018 Glenn Randers-Pehrson */
77

88
/* This code is released under the libpng license. */
@@ -27,6 +27,7 @@
2727
#define PNG_COLORSPACE_SUPPORTED
2828
#define PNG_CONSOLE_IO_SUPPORTED
2929
#define PNG_CONVERT_tIME_SUPPORTED
30+
/*#undef PNG_DISABLE_ADLER32_CHECK_SUPPORTED*/
3031
#define PNG_EASY_ACCESS_SUPPORTED
3132
/*#undef PNG_ERROR_NUMBERS_SUPPORTED*/
3233
#define PNG_ERROR_TEXT_SUPPORTED
@@ -41,6 +42,10 @@
4142
#define PNG_INCH_CONVERSIONS_SUPPORTED
4243
#define PNG_INFO_IMAGE_SUPPORTED
4344
#define PNG_IO_STATE_SUPPORTED
45+
/*#undef PNG_MIPS_MMI_API_SUPPORTED*/
46+
/*#undef PNG_MIPS_MMI_CHECK_SUPPORTED*/
47+
/*#undef PNG_MIPS_MSA_API_SUPPORTED*/
48+
/*#undef PNG_MIPS_MSA_CHECK_SUPPORTED*/
4449
#define PNG_MNG_FEATURES_SUPPORTED
4550
#define PNG_POINTER_INDEXING_SUPPORTED
4651
/*#undef PNG_POWERPC_VSX_API_SUPPORTED*/
@@ -83,11 +88,14 @@
8388
#define PNG_READ_USER_TRANSFORM_SUPPORTED
8489
#define PNG_READ_bKGD_SUPPORTED
8590
#define PNG_READ_cHRM_SUPPORTED
91+
#define PNG_READ_cICP_SUPPORTED
92+
#define PNG_READ_cLLI_SUPPORTED
8693
#define PNG_READ_eXIf_SUPPORTED
8794
#define PNG_READ_gAMA_SUPPORTED
8895
#define PNG_READ_hIST_SUPPORTED
8996
#define PNG_READ_iCCP_SUPPORTED
9097
#define PNG_READ_iTXt_SUPPORTED
98+
#define PNG_READ_mDCV_SUPPORTED
9199
#define PNG_READ_oFFs_SUPPORTED
92100
#define PNG_READ_pCAL_SUPPORTED
93101
#define PNG_READ_pHYs_SUPPORTED
@@ -153,11 +161,14 @@
153161
#define PNG_WRITE_WEIGHTED_FILTER_SUPPORTED
154162
#define PNG_WRITE_bKGD_SUPPORTED
155163
#define PNG_WRITE_cHRM_SUPPORTED
164+
#define PNG_WRITE_cICP_SUPPORTED
165+
#define PNG_WRITE_cLLI_SUPPORTED
156166
#define PNG_WRITE_eXIf_SUPPORTED
157167
#define PNG_WRITE_gAMA_SUPPORTED
158168
#define PNG_WRITE_hIST_SUPPORTED
159169
#define PNG_WRITE_iCCP_SUPPORTED
160170
#define PNG_WRITE_iTXt_SUPPORTED
171+
#define PNG_WRITE_mDCV_SUPPORTED
161172
#define PNG_WRITE_oFFs_SUPPORTED
162173
#define PNG_WRITE_pCAL_SUPPORTED
163174
#define PNG_WRITE_pHYs_SUPPORTED
@@ -171,11 +182,14 @@
171182
#define PNG_WRITE_zTXt_SUPPORTED
172183
#define PNG_bKGD_SUPPORTED
173184
#define PNG_cHRM_SUPPORTED
185+
#define PNG_cICP_SUPPORTED
186+
#define PNG_cLLI_SUPPORTED
174187
#define PNG_eXIf_SUPPORTED
175188
#define PNG_gAMA_SUPPORTED
176189
#define PNG_hIST_SUPPORTED
177190
#define PNG_iCCP_SUPPORTED
178191
#define PNG_iTXt_SUPPORTED
192+
#define PNG_mDCV_SUPPORTED
179193
#define PNG_oFFs_SUPPORTED
180194
#define PNG_pCAL_SUPPORTED
181195
#define PNG_pHYs_SUPPORTED

libpng/sbom_libpng.yml

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,18 @@
11
name: libpng
2-
version: 1.6.39
3-
cpe: cpe:2.3:a:libpng:libpng:{}:*:*:*:*:*:*:*
4-
supplier: 'Organization: libpng'
2+
version: 1.6.51
3+
cpe:
4+
- cpe:2.3:a:pnggroup:libpng:{}:*:*:*:*:*:*:*
5+
- cpe:2.3:a:libpng:libpng:{}:*:*:*:*:*:*:*
6+
supplier: 'Organization: pnggroup'
57
description: Portable Network Graphics support, official PNG reference library
6-
url: https://github.com/glennrp/libpng
7-
hash: 07b8803110da160b158ebfef872627da6c85cbdf
8+
url: https://github.com/pnggroup/libpng
9+
hash: 49363adcfaf098748d7a4c8c624ad8c45a8c3a86
10+
cve-exclude-list:
11+
- cve: CVE-2025-64720
12+
reason: Resolved in version 1.6.51
13+
- cve: CVE-2025-65018
14+
reason: Resolved in version 1.6.51
15+
- cve: CVE-2025-64505
16+
reason: Resolved in version 1.6.51
17+
- cve: CVE-2025-64506
18+
reason: Resolved in version 1.6.51

0 commit comments

Comments
 (0)