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 parseexception returning freed memory #32

Merged
merged 2 commits into from Feb 9, 2018

Conversation

floriankramer
Copy link
Member

In the ParseExceptions what() method a local string was assembled, and then a pointer to its data is returned using c_str(). As the string is deleted when the method returns, and before the string is written to stdout the strings data could be modified before printing, leading to garbled exception printing.

@Buchhold Buchhold merged commit 91d257a into ad-freiburg:master Feb 9, 2018
@Buchhold
Copy link
Member

Buchhold commented Feb 9, 2018

thanks a lot!

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