Skip to content

[Runtime] Fix swift_weakTakeStrong(). #65192

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
Apr 15, 2023

Conversation

al45tair
Copy link
Contributor

It turns out that when taking the last weak reference for an object that has been deallocated, we might have returned a non-null pointer when we shouldn't have. Which is exciting.

rdar://106375185

@al45tair al45tair requested a review from mikeash April 14, 2023 17:42
@al45tair
Copy link
Contributor Author

@swift-ci Please test

It turns out that when taking the last weak reference for an object that
has been deallocated, we might have returned a non-null pointer when we
shouldn't have.  Which is exciting.

rdar://106375185
@al45tair
Copy link
Contributor Author

@swift-ci Please test

@eeckstein
Copy link
Contributor

@swift-ci Please test

@al45tair al45tair merged commit 9fc8918 into swiftlang:main Apr 15, 2023
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.

3 participants