-
Notifications
You must be signed in to change notification settings - Fork 6.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Null pointer dereference in ll_adv_aux_ad_data_set #28544
Labels
area: Bluetooth
bug
The issue is a bug, or the PR is fixing a bug
priority: medium
Medium impact/importance bug
Comments
@jcyrax Could you please share a simple sample to reproduce this issue, so that I am able to provide a fix... since you fixed in your fork, you could send a PR too. Thank you for reporting, -Vinayak |
I'll try to do that, but it will take at least couple of days. |
cvinayak
added
has-pr
priority: medium
Medium impact/importance bug
and removed
priority: low
Low impact/importance bug
labels
Oct 1, 2020
J-Montgomery
added a commit
to J-Montgomery/zephyr
that referenced
this issue
Oct 1, 2020
Added a check for adv->lll.aux before starting extended advertising to fix observed NULL pointer dereference when updating AD data of legacy advertising. Fixes zephyrproject-rtos#28544. Signed-off-by: Jordan Montgomery <[email protected]>
carlescufi
pushed a commit
that referenced
this issue
Oct 5, 2020
Added a check for adv->lll.aux before starting extended advertising to fix observed NULL pointer dereference when updating AD data of legacy advertising. Fixes #28544. Signed-off-by: Jordan Montgomery <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
area: Bluetooth
bug
The issue is a bug, or the PR is fixing a bug
priority: medium
Medium impact/importance bug
Describe the bug
When updating advertising data with
bt_le_adv_update_data
I get error and warning message in log: "bt_hci_core: opcode 0x2037 status 0x0d". I'm not using extended advertising.I debugged the problem to be in
ll_adv_aux_ad_data_set
where controller updates advertising data and after that tries to start extended advertising even if it is not used, however it doesn't checkadv->lll.aux
for NULL.To Reproduce
I'm running on custom board with modifications to zephyr, but I think the problem should be reproducible with any BT board as long as CONFIG_BT_EXT_ADV=y or even by looking at the source.
Expected behavior
bt_le_adv_update_data
should return 0.Impact
Fixed in my fork so no problem for me.
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: