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: Check buffer length in GATT rsp functions #69396

Merged
merged 1 commit into from Feb 27, 2024

Conversation

alwa-nordic
Copy link
Collaborator

Add length checks local to the parsing function. This removes the need for a separate data validation step.

jori-nordic
jori-nordic previously approved these changes Feb 23, 2024
theob-pro
theob-pro previously approved these changes Feb 23, 2024
Copy link
Collaborator

@Thalley Thalley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor request, otherwise LGTM

subsys/bluetooth/host/gatt.c Outdated Show resolved Hide resolved
Thalley
Thalley previously approved these changes Feb 23, 2024
subsys/bluetooth/host/gatt.c Outdated Show resolved Hide resolved
ceolin
ceolin previously approved these changes Feb 23, 2024
theob-pro
theob-pro previously approved these changes Feb 26, 2024
Add length checks local to the parsing function. This removes the need
for a separate data validation step.

Signed-off-by: Aleksander Wasaznik <aleksander.wasaznik@nordicsemi.no>
Copy link
Contributor

@jori-nordic jori-nordic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hopefully no more 🚲🏠

@aescolar aescolar merged commit 3eeb8f8 into zephyrproject-rtos:main Feb 27, 2024
24 checks passed
@ceolin ceolin added the backport v3.6-branch Request backport to the v3.6-branch label Mar 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants