WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
37747
Crash in FontFallbackList::determinePitch
https://bugs.webkit.org/show_bug.cgi?id=37747
Summary
Crash in FontFallbackList::determinePitch
张晓明
Reported
2010-04-16 22:47:28 PDT
On Windows 7 Platform,Get Nightly build
r57720
, Build and run WinLanucher.exe, it will crash every time。 debugging it in Visual Studio 20005, find that the problem is caused by this function void FontFallbackList::determinePitch(const Font* font) const { const FontData* fontData = primaryFontData(font); if (!fontData->isSegmented()) m_pitch = static_cast<const SimpleFontData*>(fontData)->pitch(); else { const SegmentedFontData* segmentedFontData = static_cast<const SegmentedFontData*>(fontData); unsigned numRanges = segmentedFontData->numRanges(); if (numRanges == 1) m_pitch = segmentedFontData->rangeAt(0).fontData()->pitch(); else m_pitch = VariablePitch; } } fontData is NULL every time。 I Step into primaryFontData() and find the real reason is the following funciont void FontPlatformData::platformDataInit(HFONT font, float size, HDC hdc, WCHAR* faceName) { LOGFONT logfont; GetObject(font, sizeof(logfont), &logfont); m_cgFont.adoptCF(CGFontCreateWithPlatformFont(&logfont)); } this function is in webkit\webcore\platform\graphics\win\FontPlatformDataCGWin.cpp, this function is modified at revision 55975。before this revison, this crash not occured。
Attachments
Add attachment
proposed patch, testcase, etc.
mitz
Comment 1
2010-04-17 11:30:17 PDT
Thanks for the bug report! Do you have Safari 4.0.5 installed? <
http://trac.webkit.org/changeset/55975
> made it so that WebKit requires the version of Core Graphics that comes with Safari 4.0.5.
张晓明
Comment 2
2010-04-17 23:19:02 PDT
Get a new version of CoreGraphics.dll from safari 4.0.5, the problem is resolved。thanks for the comments from
mitz@webkit.org
!:)
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug