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

 
 

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

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

Submitter:  Tyson Smith <twsmith>
Submitted:  Mon 18 Dec 2017 04:05:39 PM UTC
   
 
Severity:  3 - Normal Item Group:  Crash
Status:  Fixed Privacy:  Public
Assigned to:  wl Open/Closed:  Closed
Planned Release:  2.9

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

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

Werner LEMBERG <wl>
Group administrator
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.)

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
  • -email is unavailable- added by wl (Posted a comment)
  • -email is unavailable- added by twsmith (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 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-12-18 wl StatusNone Fixed
        PrivacyPrivate Public
        Assigned toNone wl
        Open/ClosedOpen Closed
        Planned ReleaseNone 2.9
    2017-12-18 twsmith Attached File- Added testcase.ttf, #42672

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code