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 concat not 0-terminating when String shrunk #4962

Merged
merged 1 commit into from
Jul 26, 2018

Conversation

earlephilhower
Copy link
Collaborator

As @devyte noticed, PR #4955 has an issue when you catenate a string to
itself and the string used to hold a longer value because it does not
explicitly 0-terminate the resulting string. If the string was extended,
however, reserve() would 0-terminate by default.

Always terminate the result of s += s; now.

As @devyte noticed, PR esp8266#4955 has an issue when you catenate a string to
itself and the string used to hold a longer value because it does not
explicitly 0-terminate the resulting string.  If the string was extended,
however, reserve() would 0-terminate by default.

Always terminate the result of `s += s;` now.
@earlephilhower earlephilhower merged commit 9c846bd into esp8266:master Jul 26, 2018
@earlephilhower earlephilhower deleted the strfix4 branch July 26, 2018 16:09
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.

1 participant