-
aroben@apple.com authored
WebCore: Fix Bug 16996: Crash in createFontCustomPlatformData when loading 0-byte font via @font-face <http://bugs.webkit.org/show_bug.cgi?id=16996> Reviewed by Hyatt. Test: fast/loader/font-face-empty.html * platform/graphics/win/FontCustomPlatformData.cpp: (WebCore::createFontCustomPlatformData): Null-check the buffer parameter. LayoutTests: Test for Bug 16996: Crash in createFontCustomPlatformData when loading 0-byte font via @font-face <http://bugs.webkit.org/show_bug.cgi?id=16996> Reviewed by Hyatt. * fast/loader/font-face-empty-expected.txt: Added. * fast/loader/font-face-empty.html: Added. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@29780 268f45cc-cd09-0410-ab3c-d52691b4dbfc
9c2ce3bc