bugThe FreeType Project - Bugs: bug #48985, left shift of negative value...

 
 

bug #48985: left shift of negative value [@FT_Select_Metrics]

Submitted by:  Tyson Smith <twsmith>
Submitted on:  Sat 03 Sep 2016 12:39:53 AM UTC  
 
Severity: 3 - NormalItem Group: Incorrect behaviour
Status: FixedPrivacy: Public
Assigned to: Werner LEMBERG <wl>Open/Closed: Closed
Planned Release: 2.7.0

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Sat 03 Sep 2016 06:20:51 AM UTC, comment #1:

Fixed in git. Thanks for the report.

Werner LEMBERG <wl>
Project AdministratorIn charge of this item.
Sat 03 Sep 2016 12:39:53 AM UTC, original submission:

This was found while fuzzing with an Undefined Behavior Sanitizer build.

src/base/ftobjs.c:2735:44: runtime error: left shift of negative value -32768
#0 0x7f01c78793ae in FT_Select_Metrics src/base/ftobjs.c:2735:44
#1 0x7f01c7aad710 in FNT_Size_Select src/winfonts/winfnt.c:939:5
#2 0x7f01c7aad169 in FNT_Size_Request src/winfonts/winfnt.c:984:14
#3 0x7f01c787d65b in FT_Request_Size src/base/ftobjs.c:2949:15
#4 0x7f01c787dc4f in FT_Set_Char_Size src/base/ftobjs.c:3036:12
#5 0x4ea50d in TestFace src/tools/ftrandom/../../../src/tools/ftrandom/ftrandom.c:91:7
#6 0x4ea50d in ExecuteTest src/tools/ftrandom/../../../src/tools/ftrandom/ftrandom.c:143
#7 0x4ea50d in main src/tools/ftrandom/../../../src/tools/ftrandom/ftrandom.c:166
#8 0x7f01c691682f in __libc_start_main /build/glibc-GKVZIf/glibc-2.23/csu/../csu/libc-start.c:291
#9 0x418a78 in _start (/home/user/workspace/freetype2/ftrandom+0x418a78)

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 #38420:  test_case.ttf added by twsmith (148B - application/x-font-ttf)

 

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 twsmith (Submitted the item)
  • -unavailable- added by twsmith
  •  

    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 03 Sep 2016 06:20:51 AM UTCwlStatusNone=>Fixed
      Assigned toNone=>wl
      Open/ClosedOpen=>Closed
      Planned ReleaseNone=>2.7.0
    Sat 03 Sep 2016 12:39:53 AM UTCtwsmithAttached File-=>Added test_case.ttf, #38420
      Carbon-Copy-=>Added -unavailable-

    Back to the top


    Powered by Savane 3.1-cleanup1