Crash in CFPreferencesSetAppValue
Crash in CFPreferencesSetAppValue
- Subject: Crash in CFPreferencesSetAppValue
- From: email@hidden
- Date: Fri, 24 May 2013 06:51:09 +1200
Sorry about cutoff. Don't know what happened. Let's try again (is
there a maximum message size?).
Hello. This piece of code causes
CFPreferencesSetAppValue() to crash:
- (CFDictionaryRef)
createBlockSaveData {
CFDictionaryRef parent=[super
createBlockSaveData];
CFStringRef keys[]={CFSTR("LinkBlockURL"),
CFSTR("LinkBlockDisplayName"), CFSTR("LinkBlockBrowser"),
CFSTR("BlockType"), nil};
CFTypeRef values[]={url ? (__bridge
CFTypeRef)(url) : CFSTR("null"),
displayName ? (__bridge
CFTypeRef)(displayName) : CFSTR("null"),
browser ? (__bridge
CFTypeRef)(browser) : CFSTR("null"),
CFSTR(LKBLockTypeURL),
nil};
CFMutableDictionaryRef d=CFDictionaryCreateMutableCopy(nil, 0,
parent);
if (url) {for (int t=0; t
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden