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


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

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

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

Fri 11 Sep 2015 07:38:03 AM UTC, comment #1: 

Fixed in git, thanks for the report.

Werner LEMBERG <wl>
Group administrator
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>
Group Member


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

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
  • -email is unavailable- added by wl (Posted a comment)
  • -email is unavailable- added by kcc (Submitted the item)
  • -email is unavailable- added by kcc

    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-09-11 wl StatusNone Fixed
        Assigned toNone wl
        Open/ClosedOpen Closed
        Planned ReleaseNone 2.6.1
    2015-09-10 kcc Attached File- Added timeout-852a9f8c8c9d2fed9aea950e0b3c56cfdbf0aacf, #34854
        Carbon-Copy- Added j00ru

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code