GNOME Bugzilla – Bug 107910
crashes when fed with Korean spam.
Last modified: 2004-12-22 21:47:04 UTC
The message printed on the console is: HtmlCss-ERROR **: support unicode! aborting... The stacktrace is:
+ Trace 34680
The package is gtkhtml2-2.2.0-4 as distributed with RH/phoebe-3
Created attachment 14860 [details] gtkhtml2.2-test.html
The problem seems to be that gtkhtml2 does not contain code to ,parse in css_parser_parse_string() what appears to be a Korean font-family name. The strings seems to be "\xc2\xb1\xc2\xbc\xc2\xb8\xc2\xb2", "\xc2\xb5\xc2\xb8\xc2\xbf\xc3\xb2"; I am not sure that should be done with this string. Any suggestions welcome.
I think CSS says that if no requested font can be found, a fall back font should be used. I think a HTML renderer is allowed to ignore requests for fonts that are unavailable or have unparsable names. IMHO, what is important here is to avoid the crash.
Created attachment 15098 [details] [review] Patch to stop crash
The attached patch attempts to prevent crash. Does this work adequately?
Yes it does. Thanks for your work!
Patch committed to CVS HEAD.