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

Avoid reading past end of non-zero terminated char arrays #8597

Merged
merged 2 commits into from
Jun 12, 2022
Merged

Avoid reading past end of non-zero terminated char arrays #8597

merged 2 commits into from
Jun 12, 2022

Conversation

paulocsanz
Copy link
Contributor

@paulocsanz paulocsanz commented Jun 12, 2022

Some char* passed may be non-zero terminated slices, we could both endup with a non-zero terminated String and read past the end of the allocation, so on unmapped memory (or even possibly flash memory).

This fixes the issue.

@mcspr mcspr added this to the 3.1 milestone Jun 12, 2022
@d-a-v d-a-v merged commit bdc71e5 into esp8266:master Jun 12, 2022
hasenradball pushed a commit to hasenradball/Arduino that referenced this pull request Nov 18, 2024
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.

3 participants