bugThe FreeType Project - Bugs: bug #47310, heap-use-after-free ...


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

bug #47310: heap-use-after-free af_latin_hints_compute_segments src/autofit/aflatin.c:1537:67

Submitter:  Kostya Serebryany <kcc>
Submitted:  Mon 29 Feb 2016 08:55:53 PM UTC
Severity:  3 - Normal Item Group:  None
Status:  Fixed Privacy:  Public
Assigned to:  wl Open/Closed:  Closed
Planned Release:  2.6.4

Tue 01 Mar 2016 08:09:52 PM UTC, comment #3: 

A fresh regression, due to a thinko.

Werner LEMBERG <wl>
Group administrator
Tue 01 Mar 2016 06:17:52 PM UTC, comment #2: 

Confirmed, the bot is happy again.
So was that a fresh regression or an old bug?

Kostya Serebryany <kcc>
Group Member
Tue 01 Mar 2016 06:11:30 AM UTC, comment #1: 

Fixed in git, thanks.

Werner LEMBERG <wl>
Group administrator
Mon 29 Feb 2016 08:55:53 PM UTC, original submission:  

Found by the libFuzzer bot.
Probably a recent regression, please confirm.

==4356==ERROR: AddressSanitizer: heap-use-after-free on address 0x61d00001df68 at pc 0x0000006b9280 bp 0x7ffd94b57b30 sp 0x7ffd94b57b28
READ of size 8 at 0x61d00001df68 thread T0
    #0 0x6b927f in af_latin_hints_compute_segments src/autofit/aflatin.c:1537:67
    #1 0x6a33ec in af_latin_metrics_init_widths src/autofit/aflatin.c:183:17
    #2 0x6a33ec in af_latin_metrics_init src/autofit/aflatin.c:1009
    #3 0x6b138a in af_face_globals_get_metrics src/autofit/afglobal.c:482:17
    #4 0x6b138a in af_loader_load_glyph src/autofit/afloader.c:508
    #5 0x6b138a in af_autofitter_load_glyph src/autofit/afmodule.c:449
    #6 0x51e6a2 in FT_Load_Glyph src/base/ftobjs.c:733:19
    #7 0x4e49f0 in LLVMFuzzerTestOneInput

0x61d00001df68 is located 2280 bytes inside of 2288-byte region [0x61d00001d680,0x61d00001df70)
freed by thread T0 here:
    #0 0x4b6a8e in realloc /usr/local/google/home/kcc/llvm/projects/compiler-rt/lib/asan/asan_malloc_linux.cc:71:3
    #1 0x5238b7 in ft_mem_qrealloc src/base/ftutil.c:155:16
    #2 0x5238b7 in ft_mem_realloc src/base/ftutil.c:102

previously allocated by thread T0 here:
    #0 0x4b673b in __interceptor_malloc /usr/local/google/home/kcc/llvm/projects/compiler-rt/lib/asan/asan_malloc_linux.cc:52:3
    #1 0x52391d in ft_mem_qalloc src/base/ftutil.c:76:15
    #2 0x52391d in ft_mem_alloc src/base/ftutil.c:55
    #3 0x52391d in ft_mem_qrealloc src/base/ftutil.c:146
    #4 0x52391d in ft_mem_realloc src/base/ftutil.c:102

Kostya Serebryany <kcc>
Group Member


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

Attached Files
file #36514:  crash-7339d481874b1228d6d3bc026be9b75707777557 added by kcc (11KiB - 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)

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

    Date Changed by Updated Field Previous Value => Replaced by
    2016-03-01 wl StatusNone Fixed
        Assigned toNone wl
        Open/ClosedOpen Closed
        Planned ReleaseNone 2.6.4
    2016-02-29 kcc Attached File- Added crash-7339d481874b1228d6d3bc026be9b75707777557, #36514

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code