[Webkit-unassigned] [Bug 22503] New: createFontCustomPlatformData() crashes if CGFontCreateWithPlatformFont() returns NULL

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Nov 25 16:29:57 PST 2008


https://bugs.webkit.org/show_bug.cgi?id=22503

           Summary: createFontCustomPlatformData() crashes if
                    CGFontCreateWithPlatformFont() returns NULL
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Macintosh
        OS/Version: Mac OS X 10.5
            Status: NEW
          Keywords: InRadar
          Severity: Normal
          Priority: P2
         Component: WebCore Misc.
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: pol at apple.com


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


-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list