bugThe FreeType Project - Bugs: bug #28320, FreeType does not recognize semi...

 
 

bug #28320: FreeType does not recognize semi corrupt cff font.

Submitted by:  bram tassyns <bramt>
Submitted on:  Thu 17 Dec 2009 01:14:51 PM UTC  
 
Severity: 3 - NormalItem Group: None
Status: FixedPrivacy: Public
Assigned to: Werner LEMBERG <wl>Open/Closed: Closed
Planned Release: 2.3.12

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Fri 18 Dec 2009 06:15:02 AM UTC, comment #1:

Fixed in git, thanks.

Werner LEMBERG <wl>
Project AdministratorIn charge of this item.
Thu 17 Dec 2009 01:14:51 PM UTC, original submission:

I have a subsetted font (embedded in a pdf) that is displayed correctly by acrobat, but not recognized as a font by FreeType.

The font contains a private dict that ends with an unterminated floating point number (no operator following). While this is obviously a corrupt font it would be nice if freetype ignores this error (like acrobat does).

The following fix does the trick:

cffparse.c, 749:

/* skip real number */
p++;
for (;;)
{
if ( p >= limit )
goto Syntax_Error;

=>

/* skip real number */
p++;
for (;;)
{
if ( p >= limit )
goto Exit;

bram tassyns <bramt>

 

(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 wl (Posted a comment)
  • -unavailable- added by bramt (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 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 18 Dec 2009 06:15:02 AM UTCwlPlanned ReleaseNone=>2.3.12
      Open/ClosedOpen=>Closed
    Fri 18 Dec 2009 06:15:01 AM UTCwlStatusNone=>Fixed
      Assigned toNone=>wl

    Back to the top


    Powered by Savane 3.1-cleanup1