bugThe FreeType Project - Bugs: bug #45920, FT_New_Memory_Face takes infinite...

 
 

bug #45920: FT_New_Memory_Face takes infinite time (in PS_Conv_Strtol)

Submitted by:  Kostya Serebryany <kcc>
Submitted on:  Thu 10 Sep 2015 11:47:41 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 11 Sep 2015 07:38:03 AM UTC, comment #1:

Fixed in git, thanks for the report.

Werner LEMBERG <wl>
Project AdministratorIn charge of this item.
Thu 10 Sep 2015 11:47:41 PM UTC, original submission:

(Similarly to bug 45919, this one is found with libFuzzer).

The attached input to FT_New_Memory_Face
makes it work infinite time.
The stack trace where it is stuck:

#0 PS_Conv_Strtol at src/psaux/psconv.c:116
#1 PS_Conv_ToInt at src/psaux/psconv.c:169
#2 t42_parse_encoding at src/type42/t42parse.c:415
#3 t42_load_keyword at src/type42/t42parse.c:1023
#4 t42_parse_dict at src/type42/t42parse.c:1170
#5 T42_Open_Face at src/type42/t42objs.c:63
#6 T42_Face_Init at src/type42/t42objs.c:202
#7 open_face at src/base/ftobjs.c:1166
#8 FT_Open_Face at src/base/ftobjs.c:2152
#9 FT_New_Memory_Face at src/base/ftobjs.c:1256

Reproduces on the fresh git

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 #34854:  timeout-852a9f8c8c9d2fed9aea950e0b3c56cfdbf0aacf added by kcc (865B - 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)
  • -unavailable- added by kcc
  •  

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

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 11 Sep 2015 07:38:03 AM UTCwlStatusNone=>Fixed
      Assigned toNone=>wl
      Open/ClosedOpen=>Closed
      Planned ReleaseNone=>2.6.1
    Thu 10 Sep 2015 11:47:41 PM UTCkccAttached File-=>Added timeout-852a9f8c8c9d2fed9aea950e0b3c56cfdbf0aacf, #34854
      Carbon-Copy-=>Added j00ru

    Back to the top


    Powered by Savane 3.1-cleanup1