Revision: 29944
http://sourceforge.net/p/bibdesk/svn/29944
Author: hofman
Date: 2026-01-15 16:47:52 +0000 (Thu, 15 Jan 2026)
Log Message:
-----------
make sure not to use secure coding
Modified Paths:
--------------
trunk/bibdesk_vendorsrc/amaxwell/FileView/FVCGImageCache.m
Modified: trunk/bibdesk_vendorsrc/amaxwell/FileView/FVCGImageCache.m
===================================================================
--- trunk/bibdesk_vendorsrc/amaxwell/FileView/FVCGImageCache.m 2026-01-15
15:51:32 UTC (rev 29943)
+++ trunk/bibdesk_vendorsrc/amaxwell/FileView/FVCGImageCache.m 2026-01-15
16:47:52 UTC (rev 29944)
@@ -43,6 +43,14 @@
static CGImageRef FVCreateCGImageWithData(NSData *data);
static NSData *FVCreateDataWithCGImage(CGImageRef image);
+#if !defined(MAC_OS_X_VERSION_10_8) || MAC_OS_X_VERSION_MAX_ALLOWED <
MAC_OS_X_VERSION_10_8
+
+@interface NSKeyedUnarchiver (FVMountainLionExtensions)
+@property BOOL rquiresSecureCoding;
+@end
+
+#endif
+
#if !defined(MAC_OS_X_VERSION_10_12) || MAC_OS_X_VERSION_MAX_ALLOWED <
MAC_OS_X_VERSION_10_12
@interface NSKeyedArchiver (FVSerriaExtensions)
@@ -57,7 +65,7 @@
- (instancetype)initRequiringSecureCoding:(BOOL)requiresSecureCoding;
@end
-@interface NSKeyedUnrchiver (FVHighSerriaExtensions)
+@interface NSKeyedUnarchiver (FVHighSerriaExtensions)
- (nullable instancetype)initForReadingFromData:(NSData *)data error:(NSError
**)error;
@end
@@ -174,6 +182,10 @@
else
#endif
unarchiver = [[NSKeyedUnarchiver alloc] initForReadingFromData:data
error:NULL];
+#if !defined(MAC_OS_X_VERSION_10_8) || MAC_OS_X_VERSION_MIN_REQUIRED <
MAC_OS_X_VERSION_10_8
+ if ([unarchiver respondsToSelector:@selector(setRequiresSecureCoding:)])
+#endif
+ [unarchiver setRequiresSecureCoding:NO];
// only retained by unarchiver
FVCGImageDescription *imageDescription = [unarchiver decodeObject];
[unarchiver finishDecoding];
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit