Skip to content

Commit

Permalink
Fix NSSecureCoding adoption in SNTFileAccessEvent (#1358)
Browse files Browse the repository at this point in the history
  • Loading branch information
mlw authored May 21, 2024
1 parent d8928ac commit e43ad30
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Source/common/SNTFileAccessEvent.m
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,15 @@ + (BOOL)supportsSecureCoding {
}

- (void)encodeWithCoder:(NSCoder *)coder {
[super encodeWithCoder:coder];
ENCODE(accessedPath);
ENCODE(ruleVersion);
ENCODE(ruleName);
ENCODE(application);
}

- (instancetype)initWithCoder:(NSCoder *)decoder {
self = [super init];
self = [super initWithCoder:decoder];
if (self) {
DECODE(accessedPath, NSString);
DECODE(ruleVersion, NSString);
Expand Down

0 comments on commit e43ad30

Please sign in to comment.