bugThe FreeType Project - Bugs: bug #30261, Minor crash in freetype-tools...

 
 

bug #30261: Minor crash in freetype-tools (ftbench.c) size = face->available_sizes[0].width; (NULL-ptr deref)

Submitted by:  Robert Swiecki <jagger>
Submitted on:  Fri 25 Jun 2010 01:26:49 PM UTC  
 
Severity: 3 - NormalItem Group: Crash
Status: FixedPrivacy: Public
Assigned to: Werner LEMBERG <wl>Open/Closed: Closed
Planned Release: 2.3.13

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Fri 25 Jun 2010 08:48:50 PM UTC, comment #1:

Fixed in git, thanks. I've changed the code to reject PFR fonts which contain neither outline nor bitmap glyphs.

Werner LEMBERG <wl>
Project AdministratorIn charge of this item.
Fri 25 Jun 2010 01:26:49 PM UTC, original submission:

Linux amd64

gcc version 4.4.3, compiled with '-O0 -g'

Font: http://alt.swiecki.net/j/f/sigsegv20.pfr

$ gdb ./ftbench
(gdb) r -c 1 SIGSEGV.PC.0x403614.CODE.1.ADDR.0x2.INSTR.movzx_eax,_word_[rax+0x2].ttf

Program received signal SIGSEGV, Segmentation fault.
0x0000000000403614 in main (argc=1, argv=0x7fffffffe640) at /usr/local/google/src/freetype2-demos/src/ftbench.c:753
753 size = face->available_sizes[0].width;

(gdb) p face->available_sizes
$2 = (FT_Bitmap_Size *) 0x0

(gdb) bt
#0 0x0000000000403614 in main (argc=1, argv=0x7fffffffe640) at /usr/local/google/src/freetype2-demos/src/ftbench.c:753

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 #20818:  sigsegv20.pfr added by jagger (56KiB - application/octet-stream)

 

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
    Fri 25 Jun 2010 08:48:50 PM UTCwlStatusNone=>Fixed
      Assigned toNone=>wl
      Open/ClosedOpen=>Closed
      Planned ReleaseNone=>2.3.13
    Fri 25 Jun 2010 01:26:49 PM UTCjaggerAttached File-=>Added sigsegv20.pfr, #20818

    Back to the top


    Powered by Savane 3.1-cleanup1