bugThe FreeType Project - Bugs: bug #46222, huge memory allocation in...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #46222: huge memory allocation in cid_load_glyph src/cid/cidgload.c:125:12

Submitter:  Kostya Serebryany <kcc>
Submitted:  Fri 16 Oct 2015 05:55:26 AM UTC
   
 
Severity:  3 - Normal Item Group:  None
Status:  Fixed Privacy:  Public
Assigned to:  wl Open/Closed:  Closed
Planned Release:  2.6.2

Sat 17 Oct 2015 07:11:33 AM UTC, comment #2: 

Fixed in git, thanks.

Werner LEMBERG <wl>
Group administrator
Fri 16 Oct 2015 05:58:46 AM UTC, comment #1: 

maybe another instance of this, maybe a different bug.
Huge allocation followed by a leak of 30Gb.

==3679==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 3187667627 byte(s) in 2 object(s) allocated from:
    #0 0x4ac75b in __interceptor_malloc
    #1 0x4e2fee in ft_mem_qalloc src/base/ftutil.c:76:15
    #2 0x4e2fee in ft_mem_alloc src/base/ftutil.c:55
    #3 0x60f96b in cid_slot_load_glyph src/cid/cidgload.c:324:13
    #4 0x4dce28 in FT_Load_Glyph src/base/ftobjs.c:742:15



(file #35211)

Kostya Serebryany <kcc>
Group Member
Fri 16 Oct 2015 05:55:26 AM UTC, original submission:  

found by libFuzzer+AddressSanitizer, repro attached.

==2880==WARNING: AddressSanitizer failed to allocate 0x2600000106ffea00 bytes
==2880==AddressSanitizer's allocator is terminating the process instead of returning 0
==2880==If you don't like this behavior set allocator_may_return_null=1
==2880==AddressSanitizer CHECK failed: ...

    #6 0x4e2fee in ft_mem_qalloc src/base/ftutil.c:76:15
    #7 0x4e2fee in ft_mem_alloc src/base/ftutil.c:55
    #8 0x614879 in cid_load_glyph src/cid/cidgload.c:125:12
    #9 0x60f96b in cid_slot_load_glyph src/cid/cidgload.c:324:13
    #10 0x4dce28 in FT_Load_Glyph src/base/ftobjs.c:742:15
    #11 0x4d75ef in LLVMFuzzerTestOneInput

Kostya Serebryany <kcc>
Group Member

 

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

Attached Files
file #35211:  crash-d33cfa0d397eeff8986d422720974b74470267fa added by kcc (2KiB - application/octet-stream)
file #35210:  crash-09e1a57dd1f479f5550012f5cb68f555c8c2da60 added by kcc (1KiB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by wl (Posted a comment)
  • -email is unavailable- added by kcc (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-10-17 wl StatusNone Fixed
        Assigned toNone wl
        Open/ClosedOpen Closed
        Planned ReleaseNone 2.6.2
    2015-10-16 kcc Attached File- Added crash-d33cfa0d397eeff8986d422720974b74470267fa, #35211
    2015-10-16 kcc Attached File- Added crash-09e1a57dd1f479f5550012f5cb68f555c8c2da60, #35210

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code