-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Prevent crash when custom streambuf implementation throws #1358
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved with suggested changes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for fixing this bug! I'm planning to prepare a batch of PRs for merging, so I'll validate minor changes and push them in a few minutes.
FYI @barcharcraz, I pushed small changes after you approved. |
Thanks again - we really appreciate all of your fixes! 🐈 |
Fixes #1105
Just pre-init some pointers and a numeric variable and also wrapping a pointer deletion with an
if
statement could solve the issue.I wanted to add a test coverage and I didn't find any relative place to add the test. I've added a new folder for the new test. It's my first time that I'm adding a new folder to the tests folder. I've tried to follow the conventions. Excuse me if I missed anything here.