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: Avoid memory unsafety when loading session from disk #270

Merged
merged 3 commits into from
Jun 2, 2020

Conversation

Swatinem
Copy link
Member

@Swatinem Swatinem commented Jun 2, 2020

The session now owns its release/environment, to avoid borrowing problems when loading from disk. And also add a test that ensures loading from disk and flagging as abnormal works.

@Swatinem Swatinem requested a review from jan-auer June 2, 2020 10:27
src/sentry_session.c Outdated Show resolved Hide resolved
Copy link
Member

@jan-auer jan-auer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Should have caught this earlier :/

@Swatinem Swatinem merged commit b48c21d into master Jun 2, 2020
@Swatinem Swatinem deleted the fix/session-deser branch June 2, 2020 11:11
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.

2 participants