Bug 114345 - Crash under CTGlyphRun::CloneRange with a specific text
Summary: Crash under CTGlyphRun::CloneRange with a specific text
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac OS X 10.8
: P1 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-10 03:00 PDT by Oleg Isonen
Modified: 2013-04-10 11:12 PDT (History)
2 users (show)

See Also:


Attachments
crash report (65.89 KB, text/plain)
2013-04-10 03:03 PDT, Oleg Isonen
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Oleg Isonen 2013-04-10 03:00:24 PDT
Render this page:

<!DOCTYPE html>
<html>
    <head>
        <meta charset='utf-8'/>
    </head>
    <body>
        ّّألــحــب أمــانـــهّّ مـــشّّ غـــدر و خــيــانــهّّّ

        »̶·̵̭̌ ̤̥̈̊ كبريائي ·̵̭̌«̶
    </body>
</html>


This arabic characters in this order using some fonts like 'sans-serif' or 'Lucida Grande' will crash the safari completely.

Please find crash report in attachement.
Comment 1 Oleg Isonen 2013-04-10 03:03:20 PDT
Created attachment 197234 [details]
crash report
Comment 2 Alexey Proskuryakov 2013-04-10 10:15:05 PDT
Thank you for the report! This is a known issue in a framework below WebKit, tracked internally by Apple as <rdar://12074736>. Closing as INVALID since this is not an issue that we can fix in WebKit code base.

Did this test case come from real life, or is it a synthetic test case made just to trigger the bug? I'm not sure if "»̶·̵̭̌ ̤̥̈̊" is something that would appear on a real web page.
Comment 3 Oleg Isonen 2013-04-10 10:47:12 PDT
This issue is also reproducible in chrome.
Comment 4 Oleg Isonen 2013-04-10 10:49:49 PDT
Also an interesting thing is I could workaround it by setting display: inline-block: on this elements.
Comment 5 Oleg Isonen 2013-04-10 10:52:59 PDT
This is a real test case, we have right now. This 2 strings are things user liked at facebook and we display them.


http://skim.com/kho2
Comment 6 Oleg Isonen 2013-04-10 10:54:48 PDT
Here is thefb  page user liked:

http://www.facebook.com/kebrea2e.ahmad
Comment 7 Oleg Isonen 2013-04-10 10:56:21 PDT
Its not just this chars, its a conjunction of this 2 words  + some specific fonts + utf-8 meta tag
Comment 8 Oleg Isonen 2013-04-10 10:59:32 PDT
+ display: inline;
Comment 9 Alexey Proskuryakov 2013-04-10 11:12:16 PDT
Thank you for the additional information!