bugThe FreeType Project - Bugs: bug #43660, FreeType 2.5.3 BDF parsing NULL...

 
 

bug #43660: FreeType 2.5.3 BDF parsing NULL pointer dereference in "_bdf_parse_glyphs"

Submitted by:  Mateusz Jurczyk <j00ru>
Submitted on:  Fri 21 Nov 2014 11:40:10 AM UTC  
 
Severity: 3 - NormalItem Group: Crash
Status: FixedPrivacy: Public
Assigned to: Werner LEMBERG <wl>Open/Closed: Closed
Planned Release: 2.5.4

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Sat 22 Nov 2014 12:30:27 PM UTC, comment #1:

Fixed in git. Thanks for the report!

Werner LEMBERG <wl>
Project AdministratorIn charge of this item.
Fri 21 Nov 2014 11:40:10 AM UTC, original submission:

The following NULL pointer dereference crash has been encountered in FreeType while fuzzing BDF fonts. It has been reproduced with the current version of freetype2 from master git branch, with a 64-bit build of the ftbench utility compiled with AddressSanitizer:

$ ftbench <file>

Attached are two POC files which trigger the condition.

ASAN:SIGSEGV
=================================================================
==8204==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x00000084e7af sp 0x7fffb35ceba0 bp 0x7fffb35cffb0 T0)
#0 0x84e7ae in _bdf_parse_glyphs freetype2/src/bdf/bdflib.c:1789
#1 0x82cf2b in _bdf_readstream freetype2/src/bdf/bdflib.c:787
#2 0x820895 in bdf_load_font freetype2/src/bdf/bdflib.c:2404
#3 0x813c7a in BDF_Face_Init freetype2/src/bdf/bdfdrivr.c:364
#4 0x4cc13e in open_face freetype2/src/base/ftobjs.c:1191
#5 0x4c794b in FT_Open_Face freetype2/src/base/ftobjs.c:2123
#6 0x4c5b58 in FT_New_Face freetype2/src/base/ftobjs.c:1254
#7 0x491533 in get_face ft2demos-2.5.3/src/ftbench.c:705
#8 0x48d748 in main ft2demos-2.5.3/src/ftbench.c:924

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV freetype2/src/bdf/bdflib.c:1789 _bdf_parse_glyphs
==8204==ABORTING

Mateusz Jurczyk <j00ru>
Project Member

 

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

Attach File(s):
   
   
Comment:
   

 

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 j00ru (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 7 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 22 Nov 2014 12:30:27 PM UTCwlStatusNone=>Fixed
      PrivacyPrivate=>Public
      Assigned toNone=>wl
      Open/ClosedOpen=>Closed
      Planned ReleaseNone=>2.5.4
    Fri 21 Nov 2014 11:40:10 AM UTCj00ruAttached File-=>Added signal_sigsegv_83a1e9_6723_cov_1443223462_helvB12-ISO8859-1-17.bdf, #32507
      Attached File-=>Added signal_sigsegv_83a1e9_8269_cov_107630157_lutBS14-ISO8859-1-20.bdf, #32508

    Back to the top


    Powered by Savane 3.1-cleanup1