bugThe FreeType Project - Bugs: bug #47567, memory leak in pfr_aux_name_load

 
 

bug #47567: memory leak in pfr_aux_name_load

Submitted by:  Kostya Serebryany <kcc>
Submitted on:  Tue 29 Mar 2016 09:13:34 PM UTC  
 
Severity: 3 - NormalItem Group: None
Status: FixedPrivacy: Public
Assigned to: Werner LEMBERG <wl>Open/Closed: Closed
Planned Release: 2.6.4

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Wed 30 Mar 2016 06:45:28 AM UTC, comment #1:

Fixed in git, thanks.

Werner LEMBERG <wl>
Project AdministratorIn charge of this item.
Tue 29 Mar 2016 09:13:34 PM UTC, original submission:

Applying libFuzzer (src/tools/ftfuzzer/ftfuzzer.cc)
to fonts from https://github.com/twardoch/test-fonts/
finds a memory leak.

Repro attached.

==19553==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 72 byte(s) in 9 object(s) allocated from:
#0 0x4b79db in __interceptor_malloc
#1 0x528dee in ft_mem_qalloc src/base/ftutil.c:76:15
#2 0x528dee in ft_mem_alloc src/base/ftutil.c:55
#3 0x66a237 in pfr_aux_name_load src/pfr/pfrload.c:756:12
#4 0x66a237 in pfr_phy_font_load src/pfr/pfrload.c:922
#5 0x66a237 in pfr_face_init src/pfr/pfrobjs.c:130
#6 0x53a37b in open_face src/base/ftobjs.c:1177:15
#7 0x5365a5 in FT_Open_Face src/base/ftobjs.c:2177:19
#8 0x539c12 in FT_New_Memory_Face src/base/ftobjs.c:1267:12
#9 0x4e5dfc in LLVMFuzzerTestOneInput

Kostya Serebryany <kcc>
Project Member

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #36795:  21afed2710e4c24a10685fe179cfd5112028b3c8 added by kcc (906B - application/octet-stream)

 

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 kcc (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
    Wed 30 Mar 2016 06:45:28 AM UTCwlStatusNone=>Fixed
      Assigned toNone=>wl
      Open/ClosedOpen=>Closed
      Planned ReleaseNone=>2.6.4
    Tue 29 Mar 2016 09:13:34 PM UTCkccAttached File-=>Added 21afed2710e4c24a10685fe179cfd5112028b3c8, #36795

    Back to the top


    Powered by Savane 3.1-cleanup1