bugThe FreeType Project - Bugs: bug #46029, 3.7Gb is consumed in...

 
 

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

bug #46029: 3.7Gb is consumed in t1_load_keyword

Submitter:  Kostya Serebryany <kcc>
Submitted:  Tue 22 Sep 2015 04:47:35 PM UTC
   
 
Severity:  3 - Normal Item Group:  None
Status:  Fixed Privacy:  Public
Assigned to:  wl Open/Closed:  Closed
Planned Release:  2.6.1

Fri 25 Sep 2015 03:05:50 PM UTC, comment #1: 

Fixed in git, thanks.

Werner LEMBERG <wl>
Group administrator
Tue 22 Sep 2015 04:47:35 PM UTC, original submission:  

found on fresh git with libFuzzer (on x86_64 Linux)
Feed the attached file to FT_New_Memory_Face

Most time is spent here:
#1  0x00000000004118e9 in memset (__len=1274504904, __ch=0, __dest=0x7fffaa2d1010) at /usr/include/x86_64-linux-gnu/bits/string3.h:84
#2  ft_mem_realloc (memory=memory@entry=0x16a1010, item_size=item_size@entry=8, cur_count=cur_count@entry=0, new_count=new_count@entry=159313113,
#3  0x00000000004671b4 in ps_table_new
#4  0x000000000042636d in parse_charstrings
#5  0x000000000042521c in t1_load_keyword
#6  parse_dict
#7  0x0000000000427b31 in T1_Open_Face
#8  0x0000000000428755 in T1_Face_Init
#9  0x0000000000410cb2 in open_face
#10 0x0000000000413018 in FT_Open_Face
#11 0x0000000000413924 in FT_New_Memory_Face
#12 0x00000000004078eb in TestOneInput
#13 0x0000000000407b34 in main

Interestingly, if I set ulimit to a small value the test fits into the limit:

1Gb limit:   1.3Mb is consumed
1.5Gb limit: 1.2Gb is consumed
2Gb limit:   1.8Gb is consumed
4Gb limit:   3.7Gb is consumed
no limit:    3.7Gb is consumed

Kostya Serebryany <kcc>
Group Member

 

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

Attached Files
file #34954:  5ea9ff3039b5f18d656881c6c925de00057043c6 added by kcc (4KiB - 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 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-09-25 wl StatusNone Fixed
        Assigned toNone wl
        Open/ClosedOpen Closed
        Planned ReleaseNone 2.6.1
    2015-09-22 kcc Attached File- Added 5ea9ff3039b5f18d656881c6c925de00057043c6, #34954

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code