Skip to content
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

Fix/1188 Added allowed class for NSKeyedUnarchiver #1194

Merged
merged 7 commits into from Nov 5, 2021

Conversation

maratal
Copy link
Collaborator

@maratal maratal commented Oct 22, 2021

NSKeyedUnarchiver becomes more tricky with new version of iOS SDK. So it took a little while to figure out how to use it properly. With iOS 11 it is not happy if you indirectly allow to parse any type within an archive, so now it requires to provide allowed classes list. So I did.

Also I've provided dedicated test for unarchiving function specifically in Objective-C so Swift wouldn't interfere with its under the hood collection types conversions.

@maratal maratal self-assigned this Oct 22, 2021
@maratal maratal linked an issue Oct 22, 2021 that may be closed by this pull request
Source/ARTTypes.m Show resolved Hide resolved
Source/ARTTypes.m Outdated Show resolved Hide resolved
Source/ARTTypes.m Outdated Show resolved Hide resolved
Source/ARTTypes.m Outdated Show resolved Hide resolved
Source/ARTTypes.m Outdated Show resolved Hide resolved
@jamienewcomb
Copy link
Member

Think this is ready to go? @lukasz-szyszkowski

@maratal maratal merged commit ea4c72e into main Nov 5, 2021
@maratal maratal deleted the fix/1188-NSSecureCoding branch November 5, 2021 17:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

NSSecureCoding NSObject bypasses security
4 participants