bugThe FreeType Project - Bugs: bug #45989, leak in t42_parse_charstrings


bug #45989: leak in t42_parse_charstrings

Submitted by:  Kostya Serebryany <kcc>
Submitted on:  Thu 17 Sep 2015 04:21:19 PM UTC  
Severity:  3 - Normal Item Group:  None
Status:  Fixed Privacy:  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.


Thu 17 Sep 2015 05:31:18 PM UTC, comment #1:

Fixed in git, thanks.

Werner LEMBERG <wl>
Project AdministratorIn charge of this item.
Thu 17 Sep 2015 04:21:19 PM UTC, original submission:

found on fresh git with libFuzzer+AddressSanitizer
Feed the attached file into FT_New_Memory_Face:

==1088==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 1032 byte(s) in 1 object(s) allocated from:
#0 0x4abe6b in malloc
#1 0x4f9a8f in ft_mem_qalloc src/base/ftutil.c:76:15
#2 0x4f9a8f in ft_mem_alloc src/base/ftutil.c:55
#3 0x4f9a8f in ft_mem_qrealloc src/base/ftutil.c:146
#4 0x639caa in ps_table_new src/psaux/psobjs.c:77:10
#5 0x5980b9 in t42_parse_charstrings src/type42/t42parse.c:844:13

Kostya Serebryany <kcc>
Project Member


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

Attach Files:

Attached Files
file #34909:  a952f93c5a76504572ee12820202cb1d21a9c5fc added by kcc (24KiB - 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)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.




    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-09-17 wl StatusNone => Fixed
        Assigned toNone => wl
        Open/ClosedOpen => Closed
        Planned ReleaseNone => 2.6.1
    2015-09-17 kcc Attached File- => Added a952f93c5a76504572ee12820202cb1d21a9c5fc, #34909

    Back to the top

    Powered by Savane 3.4