bugThe FreeType Project - Bugs: bug #16759, Memory leak when CFF fonts are...

 
 

bug #16759: Memory leak when CFF fonts are opened

Submitted by:  David Turner <freetype>
Submitted on:  Tue 06 Jun 2006 08:11:55 AM UTC  
 
Severity: 3 - NormalItem Group: Incorrect behaviour
Status: FixedPrivacy: Public
Assigned to: David Turner <freetype>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 06 Jun 2006 08:11:55 AM UTC, original submission:

the function ps_unicodes_init (psmodules.c) uses a callback
function 'get_glyph_name' to retrieve the name of each glyph when building the synthetized Unicode charmap.

in CFF font, 'get_glyph_name' calls cff_sid_to_glyph_name (cffcmap.c), which always allocates a new string.

And unfortunately, 'ps_unicodes_init' never frees the glyph name strings, which are lost when the function exits.

David Turner <freetype>
Project AdministratorIn charge of this item.

 

(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

 

CC list is empty

 

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 3 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Tue 06 Jun 2006 08:24:19 AM UTCwlOpen/ClosedOpen=>Closed
Tue 06 Jun 2006 08:14:39 AM UTCfreetypeStatusNone=>Fixed
  Planned ReleaseNone=>2.3.0

Back to the top


Powered by Savane 3.1-cleanup1