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

Provide incoming HCI buffer for BTstack #2165

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

mringwal
Copy link

@mringwal mringwal commented Jan 6, 2025

The current driver reserves a larger buffer for the BTstack Pre-Buffer in memory, but does not use it when receiving an HCI packet from CYW43 driver. As some BTstack events will use this buffer, this causes an out-of-bound write / crash with BTstack v1.6.2 or higher.

Note: the 4-byte CYW43 header implicitly provided a 3-byte pre-buffer, which worked for BTstack v1.6.1 and earlier. In BTstack v1.6.2, the pre-buffer was increased which causes this bug to unhide.

This replaces #2157 (comment)

@peterharperuk peterharperuk changed the base branch from master to develop January 6, 2025 12:16
@peterharperuk
Copy link
Contributor

I changed the branch to develop

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants