bugThe FreeType Project - Bugs: bug #46215, corrupt CFF font triggers...

 
 

bug #46215: corrupt CFF font triggers assertion failure

Submitted by:  Derek Noonburg <gandc>
Submitted on:  Thu 15 Oct 2015 06:56:01 PM UTC  
 
Severity: 3 - NormalItem Group: Incorrect behaviour
Status: FixedPrivacy: Public
Assigned to: Dave Arnold <darnold>Open/Closed: Closed
Planned Release: 2.6.2

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Wed 21 Oct 2015 07:02:15 PM UTC, comment #3:

Fixed in git (tagged as #46107).

Werner LEMBERG <wl>
Project Administrator
Thu 15 Oct 2015 11:17:24 PM UTC, comment #2:

I agree this should no longer be an assert. I'll test to make sure the error reporting works.

Dave Arnold <darnold>
Project MemberIn charge of this item.
Thu 15 Oct 2015 07:06:26 PM UTC, comment #1:

Dave, please have a look so that we can be sure that a simple conversion to an FreeType error is the right action.

Werner LEMBERG <wl>
Project Administrator
Thu 15 Oct 2015 06:56:01 PM UTC, original submission:

Calling FT_Load_Glyph with glyph_index=25 on the attached font causes an assertion failure at line 591 in cf2hints.c:

/* paired edges must be in proper order */
FT_ASSERT( !isPair ||
topHintEdge->csCoord >= bottomHintEdge->csCoord );

I believe this should cause FT_Load_Glyph to return an error, rather than fail an assertion.

The font was extracted from a PDF file generated during fuzz testing. The font is presumably corrupt, and I'm not expecting good output -- just a clean error return.

I'm attaching a sample program along with the font.

Derek Noonburg <gandc>

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #35203:  exit-font9.cff added by gandc (3KiB - application/octet-stream)
file #35204:  fttest1.c added by gandc (1KiB - text/x-csrc)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by darnold (Posted a comment)
  • -unavailable- added by wl (Posted a comment)
  • -unavailable- added by gandc (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 8 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 21 Oct 2015 07:02:15 PM UTCwlStatusNone=>Fixed
      Open/ClosedOpen=>Closed
      Planned ReleaseNone=>2.6.2
    Thu 15 Oct 2015 07:06:26 PM UTCwlAssigned toNone=>darnold
    Thu 15 Oct 2015 06:56:23 PM UTCgandcCarbon-CopyRemoved gandc=>-
    Thu 15 Oct 2015 06:56:01 PM UTCgandcAttached File-=>Added exit-font9.cff, #35203
      Attached File-=>Added fttest1.c, #35204
      Carbon-Copy-=>Added gandc

    Back to the top


    Powered by Savane 3.1-cleanup1