Primary Git Repository for the Zephyr Project. Zephyr is a new generation, scalable, optimized, secure RTOS for multiple hardware architectures.
10.86k
stars
6.62k
forks
source link
bluetooth: null pointer dereference for non-connectable extended advertising #28325
Closed
pabigot closed 4 years ago
When https://github.com/pabigot/zephyr/tree/issue/28090 is run on current master including #28090 the application fails with:
This is due to https://github.com/zephyrproject-rtos/zephyr/blob/7219924ee092676b5e522697c772477741c25b6e/subsys/bluetooth/controller/ll_sw/ull_adv.c#L1497 which unconditionally dereferences
lll->node_rx_adv_term
in a case where that pointer is null. The pointer is assigned at https://github.com/zephyrproject-rtos/zephyr/blob/7219924ee092676b5e522697c772477741c25b6e/subsys/bluetooth/controller/ll_sw/ull_adv.c#L933 which is within a block conditional onCONFIG_BT_PERIPHERAL
and intended to support connectable advertising.Is extended advertising only supported in this configuration? I would like to use it for non-connectable advertisements from a beacon device.