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

fix of bad indexing in ATTClass::handleNotifyOrInd which affected BLE… #211

Merged
merged 1 commit into from
Dec 9, 2021

Conversation

Lukas-kV
Copy link
Contributor

@Lukas-kV Lukas-kV commented Dec 8, 2021

… in central mode

When BLE is in central mode and it gets notify about characteristic has changed, then BLERemoteCharacteristic::writeValue gets invalid BLEDevice ardument and valueUpdatedEventHandler function as well. Main reason is in indexing and invalid access to memory in ATTClass::handleNotifyOrInd .

@CLAassistant
Copy link

CLAassistant commented Dec 8, 2021

CLA assistant check
All committers have signed the CLA.

@per1234 per1234 added the type: imperfection Perceived defect in any part of project label Dec 8, 2021
@facchinm
Copy link
Contributor

facchinm commented Dec 9, 2021

LGTM! For the reference, the i variable in the second for (i) loop was shadowing the actual index. Great job @Lukas-kV !

@facchinm facchinm merged commit f6b7952 into arduino-libraries:master Dec 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: imperfection Perceived defect in any part of project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants