bugThe FreeType Project - Bugs: bug #19910, fontconfig fc-cache hangs on misc...

 
 

bug #19910: fontconfig fc-cache hangs on misc fonts

Submitted by:  David Halik <dhalik>
Submitted on:  Sat 19 May 2007 10:57:22 PM UTC  
 
Severity: 5 - BlockerItem Group: Crash
Status: FixedPrivacy: Public
Assigned to: David Turner <freetype>Open/Closed: Closed
Planned Release: 2.3.5

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Tue 22 May 2007 03:34:39 PM UTC, comment #4:

Works perfect! Thank you very much for the speedy fix. I'm looking forward to the actual 2.3.5 release since we've had this bug for some time in a large number of machines, but the latest CVS allowed fc-cache to chomp right through the trouble fonts. ;)

David Halik <dhalik>
Tue 22 May 2007 01:29:30 PM UTC, comment #3:

ok, a real fix is now commited to the CVS, please test appropriately with other .Z fonts on your system (I have a pretty limited collection to test against) so that we can close this bug.

the problem was really an edge case that was not properly handled by our code. I hate the .Z format, its designers were morons !!

David Turner <freetype>
Project AdministratorIn charge of this item.
Tue 22 May 2007 09:49:34 AM UTC, comment #2:

I confirm that this is a FreeType problem. More specifically in our LZW decoder, which was rewritten in 2.2.1 (in order to save huge amounts of heap memory). At the moment, I'm still undecided wether this comes from a malformed file or an edge case that isn't handled well by our sources.

I'm commiting a "band-aid" right now that aborts the decompression when the problematic code is encountered. A real fix will happen later...

David Turner <freetype>
Project AdministratorIn charge of this item.
Mon 21 May 2007 08:23:42 PM UTC, comment #1:

I can confirm this. David, please have a look; this is
really a serious regression IMHO.

You can download one of the problematic fonts here:

http://stuff.mit.edu/afs/sipb/project/zhongwen/lib/fonts/hanglg16.pcf.Z

Werner LEMBERG <wl>
Project Administrator
Sat 19 May 2007 10:57:22 PM UTC, original submission:

Hello,

There has been some discussion about whether this is a Freetype or Fontconfig issue, so bug reports are getting put on each and linked. ;) The issue is when running fc-cache -v on Solaris 9 it parses the /usr/openwin/lib/X11/fonts/misc/ directory and gets hung on six asian font files. The program has difficulty reading the compressed files and eventually sucks up all available ram and swap in the process. This has been the case since 2.2.1 and is continues to happen now with 2.3.4 and Fontconfig 2.4.2 which are the latest releases.

The files are:
hanglg16.pcf.Z
hanglm16.pcf.Z
hanglm24.pcf.Z
jiskan16.pcf.Z
jiskan24.pcf.Z
k14.pcf.Z

If they are uncompressed then it parses then properly, but once recompressed it fails immediately. So far I've been told to just uncompress them, but I find that an unacceptable and only temporary fix.

Please see https://bugs.freedesktop.org/show_bug.cgi?id=8633 for more indepth discussion.

Thanks,
-Dave

David Halik <dhalik>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by freetype (Posted a comment)
  • -unavailable- added by wl (Posted a comment)
  • -unavailable- added by dhalik (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 6 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 23 May 2007 08:14:52 AM UTCwlStatusConfirmed=>Fixed
      Open/ClosedOpen=>Closed
    Tue 22 May 2007 01:29:30 PM UTCfreetypePlanned ReleaseNone=>2.3.5
    Mon 21 May 2007 08:23:42 PM UTCwlSeverity3 - Normal=>5 - Blocker
      StatusNone=>Confirmed
      Assigned toNone=>freetype

    Back to the top


    Powered by Savane 3.1-cleanup1