-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Fix use-after-free in EventPipe #81135
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
Conversation
Read the assembly name host property once and store it in a function-scoped static global. The memory of this name is expected to be managed by this function, and this value will never change in the lifetime of an application.
Tagging subscribers to this area: @tommcdon Issue DetailsRead the assembly name host property once and store it in a function-scoped static global. The memory of this name is expected to be managed by this function, and this value will never change in the lifetime of an application. This was found with AddressSanitizer.
|
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.
Oof. Thanks.
…stead of a process-long-lived SString
Co-authored-by: Aaron Robinson <arobins@microsoft.com>
Co-authored-by: Elinor Fung <elfung@microsoft.com>
Failures are known, merging. |
Read the assembly name host property once and store it in a function-scoped static global. The memory of this name is expected to be managed by this function, and this value will never change in the lifetime of an application.
This was found with AddressSanitizer.