Re: Feeding NSUnarchiver bad data can cause crash
Re: Feeding NSUnarchiver bad data can cause crash
- Subject: Re: Feeding NSUnarchiver bad data can cause crash
- From: Jeremy Dronfield <email@hidden>
- Date: Thu, 3 Jun 2004 17:12:55 +0100
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.