Skip to content

TSCBasic: correct a use-after-free on Windows (#232) #242

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
Jul 19, 2021

Conversation

compnerd
Copy link
Member

This corrects a use-after-free caused by a pointer escape. The lifetime
of the pointer is not guaranteed, and the OS may free the pointer
early, particularly with OSSA. Push the handling into the closure to
ensure that the lifetime is extended for the duration.

This corrects a use-after-free caused by a pointer escape.  The lifetime
of the pointer is not guaranteed, and the OS may free the pointer
early, particularly with OSSA.  Push the handling into the closure to
ensure that the lifetime is extended for the duration.
@compnerd
Copy link
Member Author

@swift-ci please test

@compnerd
Copy link
Member Author

CC: @drexin

@compnerd compnerd added the 5.4 label Jul 19, 2021
@drexin drexin merged commit d7bd437 into swiftlang:release/5.4 Jul 19, 2021
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