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

 
 

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

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

Submitter:  Kostya Serebryany <kcc>
Submitted:  Mon 14 Sep 2015 09:15:09 PM UTC
   
 
Severity:  3 - Normal Item Group:  None
Status:  Fixed Privacy:  Public
Assigned to:  wl Open/Closed:  Closed
Planned Release:  2.6.1

Tue 15 Sep 2015 05:10:48 AM UTC, comment #1: 

Fixed in git, thanks.

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

 

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

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

    Date Changed by Updated Field Previous Value => Replaced by
    2015-09-15 wl StatusNone Fixed
        Assigned toNone wl
        Open/ClosedOpen Closed
        Planned ReleaseNone 2.6.1
    2015-09-14 kcc Attached File- Added 487f97c16682291e13a381996eeb622cd2a3deec, #34881

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code