-
Notifications
You must be signed in to change notification settings - Fork 3k
BLE: fix indexing of array in Cordio host stack #14305
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
BLE: fix indexing of array in Cordio host stack #14305
Conversation
instead of using a handle this should be conn id there were two calls using it differently
This PR is not ready for merge or even CI yet. I'm putting it up here for review. Thank you @mprse for finding the problem. |
@paul-szczepanek-arm, thank you for your changes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Connection stability increased significantly.
I'm still running the test-suite (having some local issues) but it looks largely OK and is also validated by the fact that Packetcraft fixed this upstream in the meantime. |
CI started |
Jenkins CI Test : ✔️ SUCCESSBuild Number: 1 | 🔒 Jenkins CI Job | 🌐 Logs & ArtifactsCLICK for Detailed Summary
|
We will wait with merging. Set this back to review |
All (working) tests passed. |
Summary of changes
The array was being indexed by handle instead of connection id as it's intended which results in reading random memory. There are two calls in cordio that use the attsCsfActClientState differently - one passes in handle, one passes in conn id (actually conn id - 1), this is now normalised to accept conn id.
Impact of changes
Migration actions required
Documentation
none
Pull request type
Test results
Reviewers
@pan- @mprse