bugThe FreeType Project - Bugs: bug #45986, leak in ps_parser_load_field

 
 

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

bug #45986: leak in ps_parser_load_field

Submitter:  Kostya Serebryany <kcc>
Submitted:  Thu 17 Sep 2015 03:52:42 AM UTC
   
 
Severity:  3 - Normal Item Group:  None
Status:  Fixed Privacy:  Public
Assigned to:  wl Open/Closed:  Closed
Planned Release:  2.6.1

Thu 17 Sep 2015 03:57:40 PM UTC, comment #1: 

Fixed in git, thanks.

Werner LEMBERG <wl>
Group administrator
Thu 17 Sep 2015 03:52:42 AM UTC, original submission:  

found on fresh git with libFuzzer+AddressSanitizer

Feed the attached data (base64) into FT_New_Memory_Face:

==30350==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 32 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 0x63dc3e in ps_parser_load_field src/psaux/psobjs.c:1225:16
    #5 0x53fc2f in t1_load_keyword src/type1/t1load.c:1032:17
    #6 0x53fc2f in parse_dict src/type1/t1load.c:2038
    #7 0x530f49 in T1_Open_Face src/type1/t1load.c:2146:13
    #8 0x530f49 in T1_Face_Init src/type1/t1objs.c:339
    #9 0x4e152a in open_face src/base/ftobjs.c:1166:15

JSFGb250VHlwZTExMS0uOiBIZYABgAFLGgAAJSFQUy1BZG9iZUZvbnQtMS4wKTogQmlja2hhbVNj
cmlwdE1NLUVuZCAwMDEuMDAwDSUlQ3JlYXRpb25EYXRlOiBUdWUgSnVsIDI5IDExOjU4OjM4IDE5
Ozk3DSUlVk11c2FnZTogMTQwNjMgMjE4NTQNJSUgQmljayloYW0gU2NyaXB0IGlzIGEgdHJhZGVt
YXJrIG9mIEFkb2JlIFN5c3QlbXMgSW5j0nJwb3JhdGVkLg0yMiBkaUN0IGJlZ2luDS9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kB, after insertion of the required escape characters.)

No files currently attached

 

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 4 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

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code