Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Feeding NSUnarchiver bad data can cause crash



On 3 Jun 2004, at 5:04 pm, Shawn Erickson wrote:

Or using new runtime/compiler support in 10.3+...

- (BOOL)canBeUnarchived: (NSData *)Target_Data
{
@try {
[NSUarchiver unarchiveObjectWithData: Target_Data];
return YES;
} @catch(NSException e) {
... if you wanted to log something ...
}

return NO;
}

I tried @try. NSUnarchiver crashes out of that too.

Regards,
-Jeremy
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >Re: Feeding NSUnarchiver bad data can cause crash (From: "Douglas A. Welton" <email@hidden>)
 >Re: Feeding NSUnarchiver bad data can cause crash (From: Shawn Erickson <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.