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

 
 

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

Submitted by:  Kostya Serebryany <kcc>
Submitted on:  Mon 29 Feb 2016 08:55:53 PM UTC  
 
Severity: 3 - NormalItem Group: None
Status: FixedPrivacy: Public
Assigned to: Werner LEMBERG <wl>Open/Closed: Closed
Planned Release: 2.6.4

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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

A fresh regression, due to a thinko.

Werner LEMBERG <wl>
Project AdministratorIn charge of this item.
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>
Project Member
Tue 01 Mar 2016 06:11:30 AM UTC, comment #1:

Fixed in git, thanks.

Werner LEMBERG <wl>
Project AdministratorIn charge of this item.
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>
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 #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
  • -unavailable- added by wl (Posted a comment)
  • -unavailable- added by kcc (Submitted the item)
  •  

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

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 01 Mar 2016 06:11:30 AM UTCwlStatusNone=>Fixed
      Assigned toNone=>wl
      Open/ClosedOpen=>Closed
      Planned ReleaseNone=>2.6.4
    Mon 29 Feb 2016 08:55:53 PM UTCkccAttached File-=>Added crash-7339d481874b1228d6d3bc026be9b75707777557, #36514

    Back to the top


    Powered by Savane 3.1-cleanup1