Skip to content

bluetooth: AVDTP: Check buffer len before pulling data #77969

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

Merged

Conversation

lylezhu2012
Copy link
Collaborator

Check the remaining buffer length is not less than required data length before pulling data from the buffer.

Check the remaining buffer length is not less than
required data length before pulling data from the
buffer.

Signed-off-by: Lyle Zhu <[email protected]>
@lylezhu2012
Copy link
Collaborator Author

@ceolin Could you help review it?

Copy link
Member

@ceolin ceolin left a comment

Choose a reason for hiding this comment

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

Not particular to this pr, but I am wondering why this function always return 0 even in error cases.

@nashif nashif merged commit 8113ff7 into zephyrproject-rtos:main Sep 9, 2024
30 checks passed
@ceolin ceolin added backport v2.7-branch Request backport to the v2.7-branch backport v3.6-branch backport v3.7-branch Request backport to the v3.7-branch labels Sep 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Bluetooth Classic Bluetooth Classic (BR/EDR) area: Bluetooth backport v2.7-branch Request backport to the v2.7-branch backport v3.7-branch Request backport to the v3.7-branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants