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

Do not return dangling pointer to exception message #20

Merged
merged 1 commit into from
Apr 25, 2015

Conversation

nbougalis
Copy link
Contributor

The coroutine_error class implemented the what function in a way that would cause undefined behavior if the returned pointer was ever used, since the object into which it was pointing was a temporary std::string that would have already been destroyed before the what function returned.

@olk
Copy link
Member

olk commented Apr 25, 2015

thx

olk added a commit that referenced this pull request Apr 25, 2015
Do not return dangling pointer to exception message
@olk olk merged commit c3a3563 into boostorg:develop Apr 25, 2015
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.

None yet

2 participants