bugThe FreeType Project - Bugs: bug #49394, Invalid left shift in...

 
 

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

bug #49394: Invalid left shift in TT_Hint_Glyph()

Submitter:  Tyson Smith <twsmith>
Submitted:  Thu 20 Oct 2016 04:47:28 PM UTC
   
 
Severity:  3 - Normal Item Group:  Incorrect behaviour
Status:  Fixed Privacy:  Public
Assigned to:  wl Open/Closed:  Closed
Planned Release:  2.7.1

Sat 22 Oct 2016 05:16:41 PM UTC, comment #1: 

Fixed in git, thanks.

Werner LEMBERG <wl>
Group administrator
Thu 20 Oct 2016 04:47:28 PM UTC, original submission:  

Found while fuzzing with UBSan and FTFuzzer.

src/truetype/ttgload.c:815:38: runtime error: left shift of 458314011 by 5 places cannot be represented in type 'FT_Int' (aka 'int')
    #0 0x5814e0 in TT_Hint_Glyph src/truetype/ttgload.c:815:38
    #1 0x572aae in TT_Process_Simple_Glyph src/truetype/ttgload.c:993:15
    #2 0x572aae in load_truetype_glyph src/truetype/ttgload.c:1656
    #3 0x54171a in TT_Load_Glyph src/truetype/ttgload.c:2627:13
    #4 0x54171a in tt_glyph_load src/truetype/ttdriver.c:445
    #5 0x4f1055 in FT_Load_Glyph src/base/ftobjs.c:742:15
    #6 0x4edfe6 in LLVMFuzzerTestOneInput src/tools/ftfuzzer/ftfuzzer.cc:192:18
    #7 0x4ee5dd in main src/tools/ftfuzzer/ftfuzzer.cc:241:9
    #8 0x7fb680a1a82f in __libc_start_main /build/glibc-GKVZIf/glibc-2.23/csu/../csu/libc-start.c:291
    #9 0x418fb8 in _start (ftfuzzer+0x418fb8)

Tyson Smith <twsmith>

 

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

Attached Files
file #38775:  test_case.ttf added by twsmith (3KiB - 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 osvdb
  • -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
    2016-10-22 wl StatusNone Fixed
        Assigned toNone wl
        Open/ClosedOpen Closed
        Planned ReleaseNone 2.7.1
    2016-10-21 osvdb Carbon-Copy- Added osvdb
    2016-10-20 twsmith Attached File- Added test_case.ttf, #38775

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code