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

 
 

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

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

Submitter:  Robert Swiecki <jagger>
Submitted:  Thu 05 Aug 2010 12:32:32 PM UTC
   
 
Severity:  3 - Normal Item Group:  Crash
Status:  Fixed Privacy:  Public
Assigned to:  wl Open/Closed:  Closed
Planned Release:  2.4.2

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

Fixed.  Thanks for the report.

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

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
  • -email is unavailable- added by wl (Posted a comment)
  • -email is unavailable- added by jagger (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
    2010-08-05 wl StatusNone Fixed
        Assigned toNone wl
        Open/ClosedOpen Closed
        Planned ReleaseNone 2.4.2
    2010-08-05 jagger Attached File- Added sigsegv29.ttf, #21148

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code