bugThe FreeType Project - Bugs: bug #52688, heap-buffer-overflow in...

 
 

bug #52688: heap-buffer-overflow in tt_face_vary_cvt()

Submitted by:  Tyson Smith <twsmith>
Submitted on:  Mon 18 Dec 2017 04:05:39 PM UTC  
 
Severity: 3 - NormalItem Group: Crash
Status: FixedPrivacy: Public
Assigned to: Werner LEMBERG <wl>Open/Closed: Closed
Planned Release: 2.8.2

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Mon 18 Dec 2017 06:44:35 PM UTC, comment #1:

Thanks for the report; this is now fixed in git.

Werner LEMBERG <wl>
Project AdministratorIn charge of this item.
Mon 18 Dec 2017 04:05:39 PM UTC, original submission:

Tested with git revision d019097bd20319023ed4e7241973016098387992

==9954==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x608000000080 at pc 0x00000069909a bp 0x7ffda27752f0 sp 0x7ffda27752e8
READ of size 2 at 0x608000000080 thread T0
#0 0x699099 in tt_face_vary_cvt /workspace/default/src/truetype/ttgxvar.c:3132:38
#1 0x68c38b in tt_set_mm_blend /workspace/default/src/truetype/ttgxvar.c:2488:17
#2 0x67bf3e in TT_Set_Var_Design /workspace/default/src/truetype/ttgxvar.c:2729:13
#3 0x5d5bd5 in FT_Set_Var_Design_Coordinates /workspace/default/src/base/ftmm.c:205:17
#4 0x511cfc in setIntermediateAxis(FT_FaceRec_*) /workspace/default/src/tools/ftfuzzer/../../../src/tools/ftfuzzer/ftfuzzer.cc:229:10
#5 0x511cfc in LLVMFuzzerTestOneInput /workspace/default/src/tools/ftfuzzer/ftfuzzer.cc:389
#6 0x512971 in main /workspace/default/src/tools/ftfuzzer/ftfuzzer.cc:452:9
#7 0x7fd46aaad82f in __libc_start_main /build/glibc-bfm8X4/glibc-2.23/csu/../csu/libc-start.c:291
#8 0x41a3e8 in _start (/home/user/Desktop/build/ftfuzzer+0x41a3e8)

0x608000000080 is located 0 bytes to the right of 96-byte region [0x608000000020,0x608000000080)
allocated by thread T0 here:
#0 0x4d2a68 in __interceptor_malloc (ftfuzzer+0x4d2a68)
#1 0x5bd84b in ft_mem_qrealloc /workspace/default/src/base/ftutil.c:146:15

Tyson Smith <twsmith>

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #42672:  testcase.ttf added by twsmith (408KiB - application/x-font-ttf)

 

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 twsmith (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 6 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 18 Dec 2017 06:44:35 PM UTCwlStatusNone=>Fixed
      PrivacyPrivate=>Public
      Assigned toNone=>wl
      Open/ClosedOpen=>Closed
      Planned ReleaseNone=>2.8.2
    Mon 18 Dec 2017 04:05:39 PM UTCtwsmithAttached File-=>Added testcase.ttf, #42672

    Back to the top


    Powered by Savane 3.1-cleanup1