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(handlers/notify): Fix use-after-free #420

Merged
merged 1 commit into from
Oct 10, 2019

Conversation

kattrali
Copy link
Contributor

@kattrali kattrali commented Oct 9, 2019

The report context (the state used to capture a report) for the notify() handler was freed prior to a check for whether to release the lock holding the thread suspension logic. This could lead to states where the check erroneously fails, failing to ever resume the suspended threads. This change places the free() after its last use.

@kattrali kattrali merged commit c5a1ea7 into master Oct 10, 2019
@kattrali kattrali deleted the kattrali/fix-use-after-free branch October 10, 2019 08:30
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