Skip to content

Commit

Permalink
Disable secure coding for NSKeyedUnarchiver (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoNatan committed Dec 8, 2023
1 parent a05c073 commit 75f82f7
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,10 @@ - (nullable instancetype)initWithPasteboardPropertyList:(NSData*)propertyList of

if(rv == nil)
{
rv = [NSKeyedUnarchiver unarchivedObjectOfClass:LNPropertyListNode.class fromData:info[@"data"] error:NULL];
NSKeyedUnarchiver* unarchiver = [[NSKeyedUnarchiver alloc] initForReadingFromData:info[@"data"] error:NULL];
unarchiver.requiresSecureCoding = NO;

rv = [unarchiver decodeObjectForKey:NSKeyedArchiveRootObjectKey];
}
}

Expand Down

0 comments on commit 75f82f7

Please sign in to comment.