Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Crash when laying out (char)0
https://bugs.webkit.org/show_bug.cgi?id=143103 Reviewed by Dean Jackson. We currently cache a character -> Font mapping in a HashMap. However, keys in Hashmaps can't be 0. This patch simply skips the cache in this case. No new tests, for now. I'm having trouble creating a test because the site that causes this bug generates their page using script, and the script is all minified, and difficult to understand. I will contact the owner of the site and ask for and unminified version of their sources. However, I don't want to that to block this tiny fix from going in. * platform/graphics/Font.cpp: (WebCore::Font::systemFallbackFontForCharacter): Canonical link: https://commits.webkit.org/161124@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@182015 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information