Skip to content

Commit 1143ca4

Browse files
authored
Merge branch 'master' into fix/nand_flash_not_working_with_esp32p4
2 parents 0f779e6 + 9d94b10 commit 1143ca4

File tree

7 files changed

+102
-14
lines changed

7 files changed

+102
-14
lines changed

.ignore_build_warnings.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
DeprecationWarning: pkg_resources is deprecated as an API
2+
WARNING: The following Kconfig variables were used in "if" clauses

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

sh2lib/sh2lib.c

Lines changed: 32 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -328,21 +328,49 @@ void sh2lib_free(struct sh2lib_handle *hd)
328328
int sh2lib_execute(struct sh2lib_handle *hd)
329329
{
330330
int ret;
331-
ret = nghttp2_session_send(hd->http2_sess);
331+
ret = sh2lib_execute_send(hd);
332332
if (ret != 0) {
333-
ESP_LOGE(TAG, "[sh2-execute] HTTP2 session send failed %d", ret);
334333
return ret;
335334
}
336335

337-
ret = nghttp2_session_recv(hd->http2_sess);
336+
ret = sh2lib_execute_recv(hd);
338337
if (ret != 0) {
339-
ESP_LOGE(TAG, "[sh2-execute] HTTP2 session recv failed %d", ret);
340338
return ret;
341339
}
342340

343341
return 0;
344342
}
345343

344+
int sh2lib_execute_recv(struct sh2lib_handle *hd)
345+
{
346+
if (hd == NULL) {
347+
ESP_LOGE(TAG, "[sh2-execute-recv] pointer to sh2lib handle cannot be NULL");
348+
return -1;
349+
}
350+
351+
int ret = nghttp2_session_recv(hd->http2_sess);
352+
if (ret != 0) {
353+
ESP_LOGE(TAG, "[sh2-execute-recv] HTTP2 session recv failed %d", ret);
354+
}
355+
356+
return ret;
357+
}
358+
359+
int sh2lib_execute_send(struct sh2lib_handle *hd)
360+
{
361+
if (hd == NULL) {
362+
ESP_LOGE(TAG, "[sh2-execute-recv] pointer to sh2lib handle cannot be NULL");
363+
return -1;
364+
}
365+
366+
int ret = nghttp2_session_send(hd->http2_sess);
367+
if (ret != 0) {
368+
ESP_LOGE(TAG, "[sh2-execute-send] HTTP2 session send failed %d", ret);
369+
}
370+
371+
return ret;
372+
}
373+
346374
int sh2lib_do_get_with_nv(struct sh2lib_handle *hd, const nghttp2_nv *nva, size_t nvlen, sh2lib_frame_data_recv_cb_t recv_cb)
347375
{
348376
int ret = nghttp2_submit_request(hd->http2_sess, NULL, nva, nvlen, NULL, recv_cb);

sh2lib/sh2lib.h

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,38 @@ int sh2lib_do_put(struct sh2lib_handle *hd, const char *path,
203203
*/
204204
int sh2lib_execute(struct sh2lib_handle *hd);
205205

206+
/**
207+
* @brief Execute receive on an HTTP/2 connection
208+
*
209+
* While the API sh2lib_do_get(), sh2lib_do_post() setup the requests to be
210+
* initiated with the server, this API performs the actual data send/receive
211+
* operations on the HTTP/2 connection. The callback functions are accordingly
212+
* called during the processing of these requests.
213+
*
214+
* @param[in] hd Pointer to a variable of the type 'struct sh2lib_handle'
215+
*
216+
* @return
217+
* - 0 if it succeeds
218+
* - Negative error code from nghttp2 on failure
219+
*/
220+
int sh2lib_execute_recv(struct sh2lib_handle *hd);
221+
222+
/**
223+
* @brief Execute send on an HTTP/2 connection
224+
*
225+
* While the API sh2lib_do_get(), sh2lib_do_post() setup the requests to be
226+
* initiated with the server, this API performs the actual data send/receive
227+
* operations on the HTTP/2 connection. The callback functions are accordingly
228+
* called during the processing of these requests.
229+
*
230+
* @param[in] hd Pointer to a variable of the type 'struct sh2lib_handle'
231+
*
232+
* @return
233+
* - 0 if it succeeds
234+
* - Negative error code from nghttp2 on failure
235+
*/
236+
int sh2lib_execute_send(struct sh2lib_handle *hd);
237+
206238
#define SH2LIB_MAKE_NV(NAME, VALUE) \
207239
{ \
208240
(uint8_t *)NAME, (uint8_t *)VALUE, strlen(NAME), strlen(VALUE), \

0 commit comments

Comments
 (0)