Skip to content

[Stdlib] Make the SwiftNativeNSXXXBase classes gracefully handle being decoded with NSKeyedUnarchiver. #24394

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
May 2, 2019

Conversation

mikeash
Copy link
Contributor

@mikeash mikeash commented Apr 30, 2019

These would never be decoded in normal use, but it's possible to construct an archive that will attempt to decode them. Without this override, that throws an exception or worse.

rdar://problem/48429185

@mikeash
Copy link
Contributor Author

mikeash commented Apr 30, 2019

@swift-ci please test

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - 845864beb2589011380ade7dd11620b7bd350069

…g decoded with NSKeyedUnarchiver.

These would never be decoded in normal use, but it's possible to construct an archive that will attempt to decode them. Without this override, that throws an exception or worse.

rdar://problem/48429185
@mikeash mikeash force-pushed the decode-the-undecodable branch from 845864b to 7506e9c Compare May 1, 2019 14:04
@mikeash
Copy link
Contributor Author

mikeash commented May 1, 2019

@swift-ci please test

@swift-ci
Copy link
Contributor

swift-ci commented May 1, 2019

Build failed
Swift Test OS X Platform
Git Sha - 845864beb2589011380ade7dd11620b7bd350069

@swift-ci
Copy link
Contributor

swift-ci commented May 1, 2019

Build failed
Swift Test Linux Platform
Git Sha - 845864beb2589011380ade7dd11620b7bd350069

@mikeash
Copy link
Contributor Author

mikeash commented May 1, 2019

@swift-ci please test os x platform

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