bugThe FreeType Project - Bugs: bug #21990, Crafted font causes...

 
 

bug #21990: Crafted font causes TT_Load_Simple_Glyph to core

Submitted by:  Elliot <wccoder>
Submitted on:  Wed 09 Jan 2008 11:31:13 PM UTC  
 
Severity: 3 - NormalItem Group: Crash
Status: FixedPrivacy: Public
Assigned to: Werner LEMBERG <wl>Open/Closed: Closed
Planned Release: 2.3.6

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Thu 10 Jan 2008 08:48:27 AM UTC, comment #1:

Fixed, thanks. Surprisingly, this issue has never come up
until now...

Please test!

Werner LEMBERG <wl>
Project AdministratorIn charge of this item.
Wed 09 Jan 2008 11:31:13 PM UTC, original submission:

Freetype 2.3.5 (and CVS head)

src/truetype/ttgload.c:

262 /* reading the contours' endpoints & number of points */
263 cont = gloader->current.outline.contours;
264 cont_limit = cont + n_contours;
265
266 /* check space for contours array + instructions count */
267 if ( n_contours >= 0xFFF || p + ( n_contours + 1 ) * 2 > limit )
268 goto Invalid_Outline;
269
270 cont[0] = prev_cont = FT_NEXT_USHORT( p );

A zero value of gloader->current.outline.contours on line 263 causes an access violation on line 270 and subsequent core dump.

Sample .ttf attached.

Elliot <wccoder>

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #14777:  load_simple_glyph_core.ttf added by wccoder (6KiB - application/x-font-ttf)

 

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 wccoder (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 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 10 Jan 2008 08:48:27 AM UTCwlStatusNone=>Fixed
      Assigned toNone=>wl
      Open/ClosedOpen=>Closed
      Planned ReleaseNone=>2.3.6
    Wed 09 Jan 2008 11:31:14 PM UTCwccoderAttached File-=>Added load_simple_glyph_core.ttf, #14777

    Back to the top


    Powered by Savane 3.1-cleanup1