Commit Graph

46081 Commits

Author SHA1 Message Date
Zhang Hai Peng
569854b55a fix(ble/bluedroid): Add length check in prepare write response
(cherry picked from commit b03ff3cf21)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2025-12-03 11:54:22 +08:00
Zhang Hai Peng
1936ba80d7 fix(ble/bluedroid): Add boundary check for adv_handle in btm_ble_adv_set_terminated_evt
(cherry picked from commit d2baf3b0d4)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2025-12-03 11:54:21 +08:00
Zhang Hai Peng
8739a2d82b fix(ble/bluedroid): Fix VLA in a2dp_gatts_coex example
(cherry picked from commit e741f09e0f)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2025-12-03 11:54:20 +08:00
Zhang Hai Peng
1ab91f0b5f fix(ble/bluedroid): Add NULL checks in GATT APIs
(cherry picked from commit a6730c7da6)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2025-12-03 11:54:20 +08:00
Zhang Hai Peng
8960e3ef50 fix(ble/bluedroid): Add NULL checks in esp_gap_ble_api
(cherry picked from commit b71c51564a)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2025-12-03 11:54:19 +08:00
Zhang Hai Peng
8ef83c2367 fix(ble/bluedroid): Add NULL check in esp_ble_gap_add_device_to_resolving_list
(cherry picked from commit 4b44d8e814)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2025-12-03 11:54:19 +08:00
Zhang Hai Peng
de2b4af5bd fix(ble/bt): Add NULL check in esp_hid_device example
(cherry picked from commit 8e0f74a2cc)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2025-12-03 11:54:18 +08:00
Zhang Hai Peng
775b64753e fix(ble/bt): Add NULL check in esp_hid_host example
(cherry picked from commit 8b5dd75368)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2025-12-03 11:54:17 +08:00
Zhang Hai Peng
f67bb6c31c fix(ble/blufi): Add DH param length validation
(cherry picked from commit 773814c087)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2025-12-03 11:54:17 +08:00
Zhang Hai Peng
dedf21c0ae fix(ble/bluedroid): Fix memory leak in ble_spp_server example
(cherry picked from commit b6b3b81bf6)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2025-12-03 11:54:16 +08:00
Zhang Hai Peng
45835b025f fix(ble/bluedroid): Use calloc in gatt_server example
(cherry picked from commit e26b60090d)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2025-12-03 11:54:16 +08:00
Zhang Hai Peng
7ca7eb47c4 fix(ble/bluedroid): Use snprintf in ble_eddystone example
(cherry picked from commit 24e023e307)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2025-12-03 11:54:15 +08:00
Zhang Hai Peng
9112b87c19 fix(ble/bluedroid): Add bounds check in ble_ancs example
(cherry picked from commit 7e876249df)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2025-12-03 11:54:15 +08:00
Zhang Hai Peng
316c5a589a fix(ble/bluedroid): Fix potential out-of-bounds issue
- add length check in hci_hal_h4_hdl_rx_packet to prevent OOB
- add adv data length check in btm_ble_cache_adv_data
- add indicate data length check in BTA_GATTS_HandleValueIndication
- add report length check in bta_hh_parse_keybd_rpt
- add report length check in BTA_HdSendReport
- add descriptor length check in BTA_HdRegisterApp
- prevent buffer overflow in attribute processing


(cherry picked from commit 71efec78c5)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2025-12-02 00:04:40 +08:00
Zhang Hai Peng
1d22e44e51 fix(ble/bluedroid): Fix potential CVE-2024-0039 out-of-bounds write in attp_build_value_cmd
- Reference: https://source.android.com/docs/security/bulletin/2024-03-01?hl=zh-cn


(cherry picked from commit e1d39f630f)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2025-12-02 00:04:40 +08:00
Zhang Hai Peng
e3f03bb165 fix(ble/bluedroid): Fix potential CVE-2020-0022 in reassemble_and_dispatch
- Reference: https://nvd.nist.gov/vuln/detail/CVE-2020-0022


(cherry picked from commit 1f7fd91b5a)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2025-12-02 00:04:40 +08:00
morris
64726df15e Merge branch 'docs/update_twai_api_ref_struct_v5.5' into 'release/v5.5'
docs: update heading levels for twai api reference (v5.5)

See merge request espressif/esp-idf!43846
2025-12-01 10:47:18 +08:00
Wang
c13ebc1643 docs: add headings for twai and gptimer api reference
Closes https://github.com/espressif/esp-idf/issues/17891
2025-11-28 18:15:38 +08:00
morris
afc3741ec4 Merge branch 'ci/reenable_p4_usb_device_tests_backport_v5.5' into 'release/v5.5'
ci(usb/device): re-enable usb_device tests for ESP32-P4 (backport v5.5)

See merge request espressif/esp-idf!43771
2025-11-28 10:09:29 +08:00
morris
ef9b619498 Merge branch 'fix/isp_typos_v5.5' into 'release/v5.5'
fix(isp): fix some typos in isp document (v5.5)

See merge request espressif/esp-idf!43508
2025-11-27 11:16:53 +08:00
morris
d0f6d3699f Merge branch 'feat/usb_host_pwr_clk_gating_ll_backport_5.5' into 'release/v5.5'
feat(usb_host): Add power and clock gating LL, HAL backport 5.5

See merge request espressif/esp-idf!42983
2025-11-27 11:15:47 +08:00
morris
1d5fcc6d2e Merge branch 'bugfix/uart_related_backports_v5.5' into 'release/v5.5'
fix(uart): some related uart backports (v5.5)

See merge request espressif/esp-idf!43617
2025-11-27 10:52:38 +08:00
Jiang Jiang Jian
7f31c97078 Merge branch 'bugfix/fix_get_current_band_error_after_set_bandmode_v5.5' into 'release/v5.5'
fix(wifi): fix get incorrect current band after set bandmode(backport v5.5)

See merge request espressif/esp-idf!43609
2025-11-27 10:23:48 +08:00
Jiang Jiang Jian
6a7659432b Merge branch 'feat/esp_idf_feat_gpioworkaround_v5.5' into 'release/v5.5'
feat(esp_hw_support): add gpio reset workaround except esp32 & esp32s2 (v5.5)

See merge request espressif/esp-idf!43469
2025-11-27 10:22:02 +08:00
Jiang Jiang Jian
2db91774f7 Merge branch 'fix/fix_bad_esp_clk_tree_initialize_v5.5' into 'release/v5.5'
fix(esp_hw_support): fix esp32c5 clk seting broken after CPU reset (v5.5)

See merge request espressif/esp-idf!43453
2025-11-27 10:19:11 +08:00
Tomas Rezucha
6eb5def1d0 ci(usb/device): re-enable usb_device tests for ESP32-P4 2025-11-26 16:00:15 +01:00
Island
df08d0dbc3 Merge branch 'bugfix/check_psync_status_v5.5' into 'release/v5.5'
fix(nimble): Add a check for psync before processing (v5.5)

See merge request espressif/esp-idf!43632
2025-11-26 17:33:14 +08:00
Michael (XIAO Xufeng)
d2ac65df80 Merge branch 'feat/make_p4_rev3_default_v5.5' into 'release/v5.5'
p4: make v3 as default for CI (v5.5)

See merge request espressif/esp-idf!43441
2025-11-26 12:02:29 +08:00
Rahul Tank
61d2d0e8c6 fix(nimble): Add a check for psync before processing 2025-11-25 10:20:50 +05:30
chenjianhua
18b82d2959 feat(ble/nimble): support runtime allocation for mempool 2025-11-25 10:20:38 +05:30
Rahul Tank
07a9d40a75 fix(nimble): Address compilation issues in nimble examples 2025-11-25 10:20:30 +05:30
Song Ruo Jing
0c15b9f6a4 refactor(ppa): avoid the use of yuv422_pack_order field in PPA driver 2025-11-24 11:41:26 +08:00
Song Ruo Jing
ee588b3aad fix(gpio): oe control by register only take effect when func sel is GPIO 2025-11-24 11:41:26 +08:00
Song Ruo Jing
3228998165 fix(uart): fix some wdt get triggered due to uart sclk not exist on C5
Interrupt wdt would get triggered on uart_driver_install if uart driver was deleted before
Closes https://github.com/espressif/esp-idf/issues/17779

RTC wdt would get triggered on esp_restart if uart driver was deleted before
2025-11-24 11:41:26 +08:00
Song Ruo Jing
430e8e8970 fix(ci): increase memory leak threshold for uart rs485 test app 2025-11-24 11:41:26 +08:00
Song Ruo Jing
a5904ca810 fix(uart): fix some uart port generate a RX BRK_DET intr on reset issue
Issue saw on S3 UART2 and some LP_UART ports
2025-11-24 11:41:26 +08:00
Song Ruo Jing
9629b2fb6a fix(uart): correct uart_get_tx_buffer_free_size calculation
Modified a bit on the TX ring buffer push size logic

 Closes https://github.com/espressif/esp-idf/issues/15859
2025-11-24 11:41:19 +08:00
Song Ruo Jing
fb20e147d5 fix(console): release default console UART pins if console is switched in bootloader
Also print out console UART pin number in app cpu_startup stage

Closes https://github.com/espressif/esp-idf/issues/16764
Closes https://github.com/espressif/esp-idf/issues/17459
2025-11-21 22:11:25 +08:00
Song Ruo Jing
086183db94 fix(light_sleep/example): fix potential compilation error in light_sleep example
If ESP_CONSOLE_NONE is selected in menuconfig, compilation fails with
undefined CONFIG_ESP_CONSOLE_UART_BAUDRATE macro.
2025-11-21 21:57:22 +08:00
Song Ruo Jing
2143f6ea47 fix(uart): fix release pin logic if switching only one pin 2025-11-21 21:57:00 +08:00
yinqingzhao
7edbfa84a3 fix(wifi): fix get incorrect current band after set bandmode 2025-11-21 19:35:12 +08:00
igor.udot
82cf7083e3 ci: disable p4 rev3 invalid tests temporarily for v5.5 only 2025-11-21 11:28:08 +08:00
morris
d66ebb86d2 Merge branch 'feat/psram_250m_p4_v5.5' into 'release/v5.5'
psram: support 250MHz in experimental (v5.5)

See merge request espressif/esp-idf!43348
2025-11-21 11:12:22 +08:00
armando
a3bca48289 ci(p4): disable p4 rev3 invalid tests temporarily for v5.5 only 2025-11-21 09:19:16 +08:00
armando
4ef2005b80 change(ci): use p4 rev3 by default only when ci build 2025-11-20 11:33:36 +08:00
armando
304ba1655b fix check test scripts build issue 2025-11-20 11:33:36 +08:00
armando
cdff2570c7 ci(p4): disable p4 rev3 invalid tests temporarily 2025-11-20 11:33:36 +08:00
armando
e44a3603c4 refactor(sleep_cpu): suppress infinite loop warnings with compiler diagnostics 2025-11-20 11:33:36 +08:00
armando
8f85983c9d ci(p4): re-enable p4 jobs 2025-11-20 11:33:36 +08:00
armando
304ebc0c74 change(p4): make v3 as default 2025-11-20 11:33:36 +08:00