Revision: 29825
          http://sourceforge.net/p/bibdesk/svn/29825
Author:   hofman
Date:     2025-11-16 16:55:45 +0000 (Sun, 16 Nov 2025)
Log Message:
-----------
use secure coding for persistent sort descriptors

Modified Paths:
--------------
    trunk/bibdesk/BDSKFileContentSearchController.m

Modified: trunk/bibdesk/BDSKFileContentSearchController.m
===================================================================
--- trunk/bibdesk/BDSKFileContentSearchController.m     2025-11-16 16:52:31 UTC 
(rev 29824)
+++ trunk/bibdesk/BDSKFileContentSearchController.m     2025-11-16 16:55:45 UTC 
(rev 29825)
@@ -199,9 +199,7 @@
 {
     [self view];
     NSMutableArray *sortDescriptors = [NSMutableArray array];
-    NSArray *array = nil;
-    @try { array = [NSKeyedUnarchiver unarchiveObjectWithData:data]; }
-    @catch (id e) {}
+    NSArray *array = [NSKeyedUnarchiver unarchivedObjectOfClasses:[NSSet 
setWithObjects:[NSArray class], [NSSortDescriptor class], nil] fromData:data 
error:NULL];
     if (array == nil) {
 #pragma clang diagnostic push
 #pragma clang diagnostic ignored "-Wdeprecated-declarations"

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

Reply via email to