Reviewed by Oliver
authorantti <antti@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 24 Aug 2007 19:38:57 +0000 (19:38 +0000)
committerantti <antti@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 24 Aug 2007 19:38:57 +0000 (19:38 +0000)
commit02d0253585eb6331f77dbdc1aa57e937c33534a1
treecf033dfd1382b745dbc8da4f809047fed593ae90
parentd83904d38421624df3f727f73174f44eac6caf9d
    Reviewed by Oliver

        Fix <rdar://problem/5393758>
        Crash in WebCore::FontData::platformInit

        Null check glyph page.

        If font has somehow failed to initialize it is possible to have null glyph page. Based on
        crash dumps this seems to occasionally happen when running Mail under guard malloc.

        No test case, I don't know how to get to this state.

        * platform/FontData.cpp:
        (WebCore::FontData::FontData):
        * platform/mac/FontDataMac.mm:
        (WebCore::FontData::platformInit):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@25215 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebCore/ChangeLog
WebCore/platform/FontData.cpp
WebCore/platform/mac/FontDataMac.mm