Skip to content

[5.3][Property Wrappers] Only re-write assign_by_wrapper to assignment if all fields have been initialized. #31292

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 25, 2020

Conversation

hborla
Copy link
Member

@hborla hborla commented Apr 24, 2020

Cherry-picked from #31248


Otherwise, the wrapped property's setter will be called with the potential to access uninitialized memory via observers.

Resolves: rdar://problem/60832285, rdar://problem/58312953
Resolves: SR-12341

@hborla hborla added the r5.3 label Apr 24, 2020
@hborla hborla requested a review from slavapestov April 24, 2020 21:14
@hborla
Copy link
Member Author

hborla commented Apr 24, 2020

@swift-ci please smoke test

@hborla
Copy link
Member Author

hborla commented Apr 24, 2020

@swift-ci please test

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - 9743ecc

@hborla
Copy link
Member Author

hborla commented Apr 24, 2020

@swift-ci please test OS X platform

@hborla hborla merged commit 7531cb6 into swiftlang:release/5.3 Apr 25, 2020
@hborla hborla deleted the 5.3-property-wrapper-di branch April 25, 2020 01:28
@AnthonyLatsis AnthonyLatsis added swift 5.3 🍒 release cherry pick Flag: Release branch cherry picks labels Jan 8, 2023
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.3
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants