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

 
 

bug #46029: 3.7Gb is consumed in t1_load_keyword

Submitted by:  Kostya Serebryany <kcc>
Submitted on:  Tue 22 Sep 2015 04:47:35 PM UTC  
 
Severity: 3 - NormalItem Group: None
Status: FixedPrivacy: Public
Assigned to: Werner LEMBERG <wl>Open/Closed: Closed
Planned Release: 2.6.1

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

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

Fixed in git, thanks.

Werner LEMBERG <wl>
Project AdministratorIn charge of this item.
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>
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 #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
  • -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
    Fri 25 Sep 2015 03:05:50 PM UTCwlStatusNone=>Fixed
      Assigned toNone=>wl
      Open/ClosedOpen=>Closed
      Planned ReleaseNone=>2.6.1
    Tue 22 Sep 2015 04:47:35 PM UTCkccAttached File-=>Added 5ea9ff3039b5f18d656881c6c925de00057043c6, #34954

    Back to the top


    Powered by Savane 3.1-cleanup1