bugThe FreeType Project - Bugs: bug #30656, Crash - SIGSEGV - in...

 
 

bug #30656: Crash - SIGSEGV - in type42/t42parse.c:604

Submitted by:  Robert Swiecki <jagger>
Submitted on:  Thu 05 Aug 2010 12:32:32 PM UTC  
 
Severity: 3 - NormalItem Group: Crash
Status: FixedPrivacy: Public
Assigned to: Werner LEMBERG <wl>Open/Closed: Closed
Planned Release: 2.4.2

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Thu 05 Aug 2010 09:16:08 PM UTC, comment #1:

Fixed. Thanks for the report.

Werner LEMBERG <wl>
Project AdministratorIn charge of this item.
Thu 05 Aug 2010 12:32:32 PM UTC, original submission:

Font: http://alt.swiecki.net/j/f/sigsegv29.ttf

$ gdb ./ftbench

(gdb) r -c 1 sigsegv29.ttf

Program received signal SIGSEGV, Segmentation fault.
0x0000000000441545 in t42_parse_sfnts (face=0x6aca60, loader=0x7fffffffdf30) at /usr/local/google/src/freetype2/src/type42/t42parse.c:604
604 if ( string_buf[string_size - 1] == 0 && ( string_size % 2 == 1 ) )

(gdb) p/x string_size
$2 = 0xffffffff8cc6be80 <-- negative value

(gdb) p/x string_buf[string_size - 1]
Cannot access memory at address 0x7fff84c110c7

(gdb) bt
#0 0x0000000000441545 in t42_parse_sfnts (face=0x6aca60, loader=0x7fffffffdf30) at /usr/local/google/src/freetype2/src/type42/t42parse.c:604
#1 0x0000000000442019 in t42_load_keyword (face=0x6aca60, loader=0x7fffffffdf30, field=0x485380) at /usr/local/google/src/freetype2/src/type42/t42parse.c:974
#2 0x00000000004423eb in t42_parse_dict (face=0x6aca60, loader=0x7fffffffdf30,
base=0x7ffff7fa4000 "%!PS-TrueTypeFont-65536-131072-1\n%%VMusage: 0 0\n11 dict begin\n/FontName /AndaleMono def\n/FontType 42 def\n/FontMatrix [1 0 0 1 0 0] def\n/FontBBox [0 -0.218262 0.600098 0.995117] readonly def\n/PaintType"..., size=204767) at /usr/local/google/src/freetype2/src/type42/t42parse.c:1121
#3 0x000000000043f68b in T42_Open_Face (face=0x6aca60) at /usr/local/google/src/freetype2/src/type42/t42objs.c:56
#4 0x000000000043fa1c in T42_Face_Init (stream=0x6aca00, face=0x6aca60, face_index=0, num_params=0, params=0x0) at /usr/local/google/src/freetype2/src/type42/t42objs.c:183
#5 0x00000000004063ed in open_face (driver=0x6ac000, stream=0x6aca00, face_index=0, num_params=0, params=0x0, aface=0x7fffffffe3a8) at /usr/local/google/src/freetype2/src/base/ftobjs.c:1134
#6 0x0000000000407a20 in FT_Open_Face (library=0x6a7040, args=0x7fffffffe420, face_index=0, aface=0x7fffffffe540) at /usr/local/google/src/freetype2/src/base/ftobjs.c:2041
#7 0x000000000040650a in FT_New_Face (library=0x6a7040, pathname=0x7fffffffe979 "sigsegv29.ttf", face_index=0, aface=0x7fffffffe540) at /usr/local/google/src/freetype2/src/base/ftobjs.c:1196
#8 0x0000000000402319 in get_face (face=0x7fffffffe540) at /usr/local/google/src/freetype2-demos/src/ftbench.c:616
#9 0x0000000000402603 in main (argc=1, argv=0x7fffffffe660) at /usr/local/google/src/freetype2-demos/src/ftbench.c:740

Under valgrind it only reports

couldn't load font resource

due to different heap layout ?

Robert Swiecki <jagger>

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #21148:  sigsegv29.ttf added by jagger (200KiB - 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 jagger (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
    Thu 05 Aug 2010 09:16:08 PM UTCwlStatusNone=>Fixed
      Assigned toNone=>wl
      Open/ClosedOpen=>Closed
      Planned ReleaseNone=>2.4.2
    Thu 05 Aug 2010 12:32:32 PM UTCjaggerAttached File-=>Added sigsegv29.ttf, #21148

    Back to the top


    Powered by Savane 3.1-cleanup1