Skip to content

Conversation

carlescufi
Copy link
Member

A few of the length checks that deal with HCI packets coming from the controller were using assert statements. But the recommended practice is to drop invalid packets and continue execution whenever a malformed packet arrives from an external source, so replace those assert statements with branches that will drop the packet and return.

@zephyrbot zephyrbot added area: Bluetooth area: Bluetooth Host Bluetooth Host (excluding BR/EDR) labels Oct 6, 2023
@carlescufi carlescufi added the bug The issue is a bug, or the PR is fixing a bug label Oct 6, 2023
@carlescufi carlescufi added this to the v3.5.0 milestone Oct 6, 2023
jori-nordic
jori-nordic previously approved these changes Oct 6, 2023
cvinayak
cvinayak previously approved these changes Oct 6, 2023
jhedberg
jhedberg previously approved these changes Oct 6, 2023
A few of the length checks that deal with HCI packets coming from the
controller were using assert statements. But the recommended practice is
to drop invalid packets and continue execution whenever a malformed
packet arrives from an external source, so replace those assert
statements with branches that will drop the packet and return.

Signed-off-by: Carles Cufi <[email protected]>
@carlescufi
Copy link
Member Author

@Thalley please take another look

@jhedberg jhedberg merged commit ee0314a into zephyrproject-rtos:main Oct 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Bluetooth Host Bluetooth Host (excluding BR/EDR) 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.

6 participants