Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 71652 - RFE: mtsorts.ttf broken font fix
RFE: mtsorts.ttf broken font fix
Product: Red Hat Raw Hide
Classification: Retired
Component: XFree86 (Show other bugs)
All Linux
low Severity medium
: ---
: ---
Assigned To: Mike A. Harris
David Lawrence
Depends On:
  Show dependency treegraph
Reported: 2002-08-16 00:06 EDT by Mike A. Harris
Modified: 2007-03-26 23:55 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2003-01-15 13:54:12 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
mtsorts.ttf (75.12 KB, application/octet-stream)
2002-08-20 11:04 EDT, Sammy
no flags Details

  None (edit)
Description Mike A. Harris 2002-08-16 00:06:24 EDT
Description of Problem:
There is a widely dispersed truetype font, which is broken completely.
"mtsorts.ttf" is the main baddy out there, and is listed in Microsoft
knowledgebase as being totally broken and causing problems.

All code in the distribution which opens up truetype fonts should be
modified to detect this font by checking the md5sum and comparing it
with a known md5sum of the bad font.

Sometime in the future, I'll track down a copy of this font, and md5sum
it.  We can then blacklist it.
Comment 1 Owen Taylor 2002-08-16 11:51:29 EDT
Why do we need to do this? If a font is broken, FreeType will catch
that, and we have to handle other broken fonts as well....
Comment 2 Mike A. Harris 2002-08-18 06:46:55 EDT
Because in the past, I've received bug reports from users unable to
get X to start up after they installed new ttf fonts.  On several
occasions of debugging it turned out a font named mtsorts.ttf was
to blame.  Removing that font made everything work again.

Someone pointed out to me a Microsoft Knowledgebase article which
claims that there is a buggy mtsorts.ttf font in the wild which will
cause MS WIndows to crash/freak out.  Same thing happens in Linux.

I don't have a copy of this font, but I will obtain one sometime.
Since it is not an uncommon font, and not uncommon problem, I think
we should ensure that this font does not crash xfs, X, or anything
else, and preferably a warning/error is logged or somesuch so users
know they've got a bogus/bad font.  Doesn't solve the problem, but
does work around it and prevent users from having a bad experience,
and us from getting bogon bug reports of this nature.

I just figured an md5sum would be a good way to hone in on the bad
font.   The filename check isn't good enough, as a later version
of the font fixes the bug.
Comment 3 Bill Nottingham 2002-08-19 23:33:39 EDT
This should be done in the font handling library, by not freaking on invalid
data. Be tolerant in what you accept, etc...
Comment 4 Sammy 2002-08-20 11:04:17 EDT
Created attachment 71608 [details]
Comment 5 Sammy 2002-08-20 11:04:30 EDT
I was one of the people that suffered from this! It was segfaulting 
the xftcache program. I have an old copy of the mtsorts.ttf file, 
which is included as an attachement.
Comment 6 Owen Taylor 2002-08-20 12:28:29 EDT
Well, if the problem is "xftcache segfaults when fed mtsorts.ttf" the
answer isn't "blacklist mtsorts.ttf" but "fix xftcache" !

(xftcache is gone now, btw, replace with fc-cache)
Comment 7 Mike A. Harris 2002-11-03 04:28:03 EST
Owen, that's exactly the point of this tracker bug.  To make sure all
applications/whatever that read font files do not crash when reading
fonts.  How that happens can be a variety of ways.  What's more important
is that apps don't crash, and users don't get oddball behaviour due to
bad fonts being present.

There are a few ways this can be accomplished.  Any method is fine with
me.  It's not a high priority in any case.  I just wanted to track it in
bugzilla for myself, to play around with it at some point in the future.

If any specific app/lib crashes with bad font input such as the mtsorts.ttf,
then another bug report should be filed against that app/lib to be fixed,
and possibly tracked against this one too.
Comment 8 Mike A. Harris 2002-12-19 05:26:37 EST
Yu, can you verify that ttmkfdir does'nt die with this problem font, and
fix ttmkfdir if it does have a problem with it?  TIA
Comment 9 Mike A. Harris 2003-01-15 13:54:12 EST
These problems no longer appear to be reported, so I'm closing this.

Note You need to log in before you can comment on or make changes to this bug.