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

 
 

bug #49394: Invalid left shift in TT_Hint_Glyph()

Submitted by:  Tyson Smith <twsmith>
Submitted on:  Thu 20 Oct 2016 04:47:28 PM UTC  
 
Severity: 3 - NormalItem Group: Incorrect behaviour
Status: FixedPrivacy: Public
Assigned to: Werner LEMBERG <wl>Open/Closed: Closed
Planned Release: 2.7.1

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

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

Fixed in git, thanks.

Werner LEMBERG <wl>
Project AdministratorIn charge of this item.
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.)

Attach File(s):
   
   
Comment:
   

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
  • -unavailable- added by wl (Posted a comment)
  • -unavailable- added by osvdb
  • -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
    Sat 22 Oct 2016 05:16:41 PM UTCwlStatusNone=>Fixed
      Assigned toNone=>wl
      Open/ClosedOpen=>Closed
      Planned ReleaseNone=>2.7.1
    Fri 21 Oct 2016 03:36:21 AM UTCosvdbCarbon-Copy-=>Added osvdb
    Thu 20 Oct 2016 04:47:28 PM UTCtwsmithAttached File-=>Added test_case.ttf, #38775

    Back to the top


    Powered by Savane 3.1-cleanup1