createFontCustomPlatformData() crashes if CGFontCreateWithPlatformFont() returns NULL: CGFontRef cgFontRef = CGFontCreateWithPlatformFont(&fontRef); #ifndef BUILDING_ON_TIGER // Workaround for <rdar://problem/5675504>. if (!CGFontGetNumberOfGlyphs(cgFontRef)) { CFRelease(cgFontRef); <----- CRASH cgFontRef = 0; } #endif Original problem is here: <rdar://problem/6401604> 10A222 + r38744: WebCore crashes in demo that uses custom font
Created attachment 25511 [details] Patch v1
Comment on attachment 25511 [details] Patch v1 r=me
Sending WebCore/ChangeLog Sending WebCore/platform/graphics/mac/FontCustomPlatformData.cpp Transmitting file data .. Committed revision 38770.