bugThe FreeType Project - Bugs: bug #31310, ft_var_readpackedpoints() buffer...

 
 

bug #31310: ft_var_readpackedpoints() buffer overflow

Submitted by:  None
Submitted on:  Mon 11 Oct 2010 11:03:45 PM UTC  
 
Severity: 3 - NormalItem Group: Crash
Status: FixedPrivacy: Public
Assigned to: Werner LEMBERG <wl>Open/Closed: Closed
Planned Release: 2.4.4

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

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

 

Tue 12 Oct 2010 05:55:19 AM UTC, comment #1:

This should be fixed in the git. Thanks for the report. Please test.

Unfortunately, I don't have a GX font for testing which calls `ft_var_readpackedpoints' at all. If you have such a font I would be glad if you could provide it to me privately.

Werner LEMBERG <wl>
Project AdministratorIn charge of this item.
Mon 11 Oct 2010 11:03:45 PM UTC, original submission:

The function ft_var_readpackedpoints() in src/truetype/ttgxvar.c has a buffer overflow, leading to crashes and potential code execution.

When parsing a malicious TrueType GX font with n set to a lower value than runcnt, the for loops in the function will keep writing outside of allocated memory.

This was tested on version 2.4.3.

-- "van damme's brain cell"

Anonymous

 

(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)
  •  

    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
    Tue 12 Oct 2010 05:55:19 AM UTCwlStatusNone=>Fixed
      Assigned toNone=>wl
      Open/ClosedOpen=>Closed
      Planned ReleaseNone=>2.4.4

    Back to the top


    Powered by Savane 3.1-cleanup