bugThe FreeType Project - Bugs: bug #45964, src/pcf/pcfread.c:1291:44: runtime...

 
 

bug #45964: src/pcf/pcfread.c:1291:44: runtime error: signed integer overflow: 6764195537992704 * 7200 cannot be represented in type

Submitted by:  Kostya Serebryany <kcc>
Submitted on:  Mon 14 Sep 2015 09:15:09 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 15 Sep 2015 05:10:48 AM UTC, comment #1:

Fixed in git, thanks.

Werner LEMBERG <wl>
Project AdministratorIn charge of this item.
Mon 14 Sep 2015 09:15:09 PM UTC, original submission:

found on fresh git with libFuzzer+UBsan (on x86_64 Linux)

Build with -fsanitize=signed-integer-overflow and feed the attached file into FT_New_Memory_Face

src/pcf/pcfread.c:1291:44: runtime error: signed integer overflow: 6764195537992704 * 7200 cannot be represented in type

The code is:
(FT_Pos)( ( prop->value.l * 64 * 7200 + 36135L ) / 72270L );

Apparently, prop->value.l could be rather large...

Kostya Serebryany <kcc>
Project Member

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #34881:  487f97c16682291e13a381996eeb622cd2a3deec added by kcc (4KiB - application/octet-stream - j00ru)

 

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 kcc (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 15 Sep 2015 05:10:48 AM UTCwlStatusNone=>Fixed
      Assigned toNone=>wl
      Open/ClosedOpen=>Closed
      Planned ReleaseNone=>2.6.1
    Mon 14 Sep 2015 09:15:09 PM UTCkccAttached File-=>Added 487f97c16682291e13a381996eeb622cd2a3deec, #34881

    Back to the top


    Powered by Savane 3.1-cleanup1