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 potential arrary overflow problem of _recvBuffer #214

Merged
merged 4 commits into from
Dec 22, 2021

Conversation

bigbearishappy
Copy link
Contributor

I find that when I use my nano 33 ble with this BLE lib.
Sometimes when I use the demo project ScanCallback.ino,
my program freezes because of the overflow of _recvBuffer.

@CLAassistant
Copy link

CLAassistant commented Dec 17, 2021

CLA assistant check
All committers have signed the CLA.

@facchinm facchinm requested a review from aentinger December 17, 2021 14:56
Copy link
Contributor

@aentinger aentinger left a comment

Choose a reason for hiding this comment

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

Looking alright, however a couple of questions remain ...

src/utility/HCI.cpp Outdated Show resolved Hide resolved
src/utility/HCI.cpp Outdated Show resolved Hide resolved
src/utility/HCI.cpp Outdated Show resolved Hide resolved
bigbearishappy and others added 2 commits December 21, 2021 17:50
make the code eaiser to read

Co-authored-by: Alexander Entinger <[email protected]>
Copy link
Contributor

@aentinger aentinger left a comment

Choose a reason for hiding this comment

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

LGTM, however you could have left the debug message. (Possibly reinsert it?) I was just critical of the indentation, which seemed too much to me.

@bigbearishappy
Copy link
Contributor Author

LGTM, however you could have left the debug message. (Possibly reinsert it?) I was just critical of the indentation, which seemed too much to me.

Thank you for your reply.It seems that it's better to keep the debug msg.I just restore the code of it.I agree with your suggestion to delete the "continue;".

Copy link
Contributor

@aentinger aentinger left a comment

Choose a reason for hiding this comment

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

Thank you @bigbearishappy 🚀

@aentinger aentinger merged commit 8d4d1dc into arduino-libraries:master Dec 22, 2021
@per1234 per1234 added topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project labels Jan 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants