bugThe FreeType Project - Bugs: bug #40997, winfont driver overrides...

 
 

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

bug #40997: winfont driver overrides face_flags (EXTERNAL_STREAM)

Submitter:  None
Submitted:  Wed 25 Dec 2013 12:26:56 AM UTC
   
 
Severity:  3 - Normal Item Group:  Crash
Status:  Fixed Privacy:  Public
Assigned to:  wl Open/Closed:  Closed
Planned Release:  2.5.3

Wed 25 Dec 2013 07:54:50 AM UTC, comment #1: 

Fixed in git.  Thanks for the report!

Werner LEMBERG <wl>
Group administrator
Wed 25 Dec 2013 12:26:56 AM UTC, original submission:  

When using external streams and windows font files, the stream is closed by freetype anyway - which leads to a double-free error when the external system closes the stream itself.

In src/winfonts/winfnt.c:746 the face_flags member is overridden, therefor the flag FT_FACE_FLAG_EXTERNAL_STREAM (been set in src/base/ftobjs.c:1169) is removed.

It works with truetype fonts (I assume because in src/truetype/ttobjs.c the face_flags is never completely overridden), but not with windows fonts (.fon).

I added a SDL_ttf-based example (uses SDL-based streams as input to freetype).
The program crashes with a double-free error when the stream that SDL_ttf created is closed by SDL_ttf.

Used freetype 2.5.2 and sdl-ttf 2.0.10

Anonymous

 

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

Attached Files
file #30088:  freetype-SDL-bug.c added by None (677B - application/octet-stream)

 

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)
  •  

    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
    2013-12-25 wl StatusNone Fixed
        Assigned toNone wl
        Open/ClosedOpen Closed
        Planned ReleaseNone 2.5.3
    2013-12-25 None Attached File- Added freetype-SDL-bug.c, #30088

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code