bugThe FreeType Project - Bugs: bug #45681, several invalid left shift found...

 
 

bug #45681: several invalid left shift found by afl

Submitted by:  Dingbao Xie <xiedingbao>
Submitted on:  Mon 03 Aug 2015 06:44:42 PM UTC  
 
Severity: 3 - NormalItem Group: None
Status: FixedPrivacy: Public
Assigned to: Werner LEMBERG <wl>Open/Closed: Closed
Planned Release: 2.6.1

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Tue 04 Aug 2015 04:52:03 AM UTC, comment #1:

Thanks. Already fixed in git (except the error in ftobjs.c, which is fixed now also).

Please run your tests on the current git!

Werner LEMBERG <wl>
Project AdministratorIn charge of this item.
Mon 03 Aug 2015 06:44:42 PM UTC, original submission:

Follow the steps in this report:https://savannah.nongnu.org/bugs/index.php?45661

I have found 7 more invalid shift that could cause overflow:

freetype-2.6/src/base/ftrfork.c:74:45: runtime error: left shift of 128 by 24 places cannot be represented in type 'int'
freetype-2.6/src/base/ftrfork.c:78:45: runtime error: left shift of 128 by 24 places cannot be represented in type 'int'
freetype-2.6/src/base/ftrfork.c:82:28: runtime error: left shift of 128 by 24 places cannot be represented in type 'int'
reetype-2.6/src/base/ftobjs.c:1901:27: runtime error: left shift of 128 by 24 places cannot be represented in type 'int'
freetype-2.6/src/truetype/ttgload.c:659:43: runtime error: left shift of negative value -22328
freetype-2.6/src/truetype/ttgload.c:664:43: runtime error: left shift of negative value -600
freetype-2.6/src/truetype/ttgload.c:665:43: runtime error: left shift of negative value -14136

Attached is the input to reproduce them.

Dingbao Xie <xiedingbao>

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #34570:  inputs.zip added by xiedingbao (8KiB - application/zip)

 

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 xiedingbao (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 04 Aug 2015 04:52:03 AM UTCwlStatusNone=>Fixed
      Assigned toNone=>wl
      Open/ClosedOpen=>Closed
      Planned ReleaseNone=>2.6.1
    Mon 03 Aug 2015 06:44:42 PM UTCxiedingbaoAttached File-=>Added inputs.zip, #34570

    Back to the top


    Powered by Savane 3.1-cleanup1