Skip to content
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

Bluetooth: controller: Fix data length calculation in adv report #35453

Merged

Conversation

andrzej-kaczmarek
Copy link
Collaborator

@andrzej-kaczmarek andrzej-kaczmarek commented May 19, 2021

Max data length has to be adjusted for subevent code, otherwise we'll
hit an assert when trying to add data to event due to insufficient
free space.

Fixes #35344.

Signed-off-by: Andrzej Kaczmarek andrzej.kaczmarek@codecoup.pl

subsys/bluetooth/controller/hci/hci.c Outdated Show resolved Hide resolved
Max data length has to be adjusted for subevent code, otherwise we'll
hit an assert when trying to add data to event due to insufficient
free space.

Signed-off-by: Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>
Fix the missing HCI event data len limit check when encoding
incomplete advertising data report.

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
@cvinayak cvinayak added the bug The issue is a bug, or the PR is fixing a bug label May 21, 2021
@cvinayak cvinayak added this to the v2.6.0 milestone May 21, 2021
@carlescufi carlescufi merged commit d999d5e into zephyrproject-rtos:main May 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Bluetooth Controller area: Bluetooth bug The issue is a bug, or the PR is fixing a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Coverity CID: 236075] Out-of-bounds access in subsys/bluetooth/controller/hci/hci.c
3 participants