Skip to content

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