bugThe FreeType Project - Bugs: bug #18301, FT_Load_Glyph shouldn't compare a...

 
 

bug #18301: FT_Load_Glyph shouldn't compare a CID to num_glyphs

Submitted by:  Derek Noonburg <derekn>
Submitted on:  Tue 14 Nov 2006 08:30:12 PM UTC  
 
Severity: 3 - NormalItem Group: Incorrect behaviour
Status: FixedPrivacy: Public
Assigned to: Werner LEMBERG <wl>Open/Closed: Closed
Planned Release: 2.3.0

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Tue 28 Nov 2006 11:36:23 PM UTC, comment #2:

Tested a CVS copy, works fine.
Thanks.

Derek Noonburg <derekn>
Sun 19 Nov 2006 09:21:28 AM UTC, comment #1:

Fixed, thanks. Please test.

Werner LEMBERG <wl>
Project AdministratorIn charge of this item.
Tue 14 Nov 2006 08:30:12 PM UTC, original submission:

FT_Load_Glyph compares its glyph_index argument to face->num_glyphs, which causes problems for CID CFF fonts (and maybe also CID non-CFF fonts, I'm not sure), because the glyph_index argument is really a CID, not a GID. A CID CFF font can contain (for example) three glyphs with GIDs 1-3, but mapped to CIDs greater than 3. In that case FT_Load_Glyph returns FT_Err_Invalid_Argument (because the the glyph_index argument is greater than num_glyphs).

This is with FreeType 2.2.1.

Derek Noonburg <derekn>

 

(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 derekn (Posted a comment)
  •  

    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
    Sun 19 Nov 2006 09:21:28 AM UTCwlStatusNone=>Fixed
      Assigned toNone=>wl
      Open/ClosedOpen=>Closed
      Planned ReleaseNone=>2.3.0

    Back to the top


    Powered by Savane 3.1-cleanup1