-
Notifications
You must be signed in to change notification settings - Fork 278
Fix use-after-free bug in registry_watcher #554
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
base: master
Are you sure you want to change the base?
Conversation
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
looks good. do you have a synthetic test that shows the problem and validates the fix? |
| // Sleep(1); // Enable for testing to find use after free bugs. | ||
| } | ||
| else if (rearm) | ||
| else if (rearm && refCount > 0) |
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.
This suggests you are guarding against negative values. If you've seen this actually happen, we'd be very interested to learn more since that would suggest there's a mis-match of AddRef and Release.
|
Something seems fishy here. You do mention:
which may technically have some merit to it since I'll second Chris' question - I'd like to know more about the scenario where you've seen issues. |
Fix the following scenario: