Files
esp-idf/components/bt/esp_ble_mesh
Master 046e69d925 fix(ble_mesh): index last_param by inst_type, not controller inst_id
last_param[] is sized by BLE_MESH_ADV_INST_TYPES_NUM (the number of mesh
advertising instance types) but was indexed by inst_id, the controller
advertising instance id (Kconfig range 0-3). With multi-adv disabled the
type count is 1, so any non-zero CONFIG_BLE_MESH_ADV_INST_ID caused an
out-of-bounds access into last_param[].

Map inst_id to inst_type with the new bt_mesh_get_adv_inst_type_by_inst_id()
helper and index last_param by inst_type in both the nimble and bluedroid
host adapters. Add a bounds check at bt_le_ext_adv_start() entry to guard
against unmapped instance ids.
2026-09-11 12:05:21 +08:00
..

ESP-BLE-MESH Component

This is Espressif Bluetooth Low Energy Mesh component folder.

This component is a part of Espressif IoT Development Framework (ESP-IDF). For the latest documentation please refer to ESP-IDF Programming Guide.

The ESP-BLE-MESH networking enables many-to-many (m:m) device communications and is optimized for creating large-scale device networks.

ESP-BLE-MESH Documentation

ESP-BLE-MESH Examples

  • Refer to ESP-BLE-MESH Examples of Getting Started for the tutorials of ESP BLE Mesh examples.