Skip to content

Fix crash when flushing events to disk at exit. #268

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

Merged
merged 1 commit into from
Apr 28, 2022
Merged

Fix crash when flushing events to disk at exit. #268

merged 1 commit into from
Apr 28, 2022

Conversation

bbernhar
Copy link
Contributor

Event "name" field references a literal within an object that could be destroy before the event writter is finished using it at program exit.

This fix ensures the "name" field is always copied whose lifetime is the same as the buffer.

The event "name" field references a literal within an object that could be destroy before the event writter is finished using it at program exit.

This fix ensures the "name" field is always copied whose lifetime is the same as the buffer.
@bbernhar bbernhar added the bug Something isn't working label Apr 28, 2022
@bbernhar bbernhar merged commit e67c241 into main Apr 28, 2022
@bbernhar bbernhar deleted the tmp1 branch April 28, 2022 18:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant