Skip to content

Conversation

drexin
Copy link
Contributor

@drexin drexin commented Feb 1, 2024

…nWithCopy

(cherry picked from: #71323)

Explanation: An existential can contain a different type than the one that is being assigned, so we have to check the types and handle the values accordingly to prevent leaks and crashes.
Issue: rdar://117083470
Risk: Minimal. Only affects compact value witnesses, which is still experimental.
Testing: Added new test, existing tests still pass.
Reviewer: @mikeash

…nWithCopy

rdar://117083470

An existential can contain a different type than the one that is being assigned, so we have to check the types and handle the values accordingly.
@drexin drexin added 🍒 release cherry pick Flag: Release branch cherry picks swift 5.10 labels Feb 1, 2024
@drexin drexin requested a review from a team as a code owner February 1, 2024 23:17
@drexin
Copy link
Contributor Author

drexin commented Feb 1, 2024

@swift-ci test

@tbkka tbkka merged commit 63c8b55 into swiftlang:release/5.10 Feb 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🍒 release cherry pick Flag: Release branch cherry picks swift 5.10
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants