The FreeType Project - Bugs: bug #23204, freetype2 crashes
You are not allowed to post comments on this tracker with your current authentication level.
bug #23204: freetype2 crashes
Submitter: | None | ||
Submitted: | Thu 08 May 2008 01:09:14 PM UTC | ||
Severity: | 3 - Normal | Item Group: | Crash |
Status: | Fixed | Privacy: | Public |
Assigned to: | mpsuzuki | Open/Closed: | Closed |
Planned Release: | 2.3.6 |
Thu 22 May 2008 03:09:54 AM UTC, comment #2: |
suzuki toshiya <mpsuzuki> |
Tue 20 May 2008 08:04:27 AM UTC, comment #1: Thank you for hunting a bug in ftmac.c and the patch to fix it.
|
suzuki toshiya <mpsuzuki> |
Thu 08 May 2008 01:09:14 PM UTC, original submission:
When using the inbuilt freetype2 through fontconfig, a program will crash when linked and run against 64-bit Intel Leopard.
1. Compile the enclosed program as follows:
It crashes with a Segmentation Fault.
If you use -arch i386, -arch ppc or -arch ppc64, the problem does not occur.
Running this in gdb produces the following backtrace:
|
Anonymous |
Depends on the following items: None found
Items that depend on this one: None found
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 6 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2008-09-15 | wl | Status | None | Fixed | |
2008-05-22 | mpsuzuki | Open/Closed | Open | Closed | |
2008-05-20 | mpsuzuki | Planned Release | None | 2.3.6 | |
2008-05-08 | wl | Assigned to | None | mpsuzuki | |
2008-05-08 | None | Attached File | - | Added testfontconfig.c, #15640 | |
Attached File | - | Added freetype.patch, #15641 |
Powered by Savane 3.13-d3ae.
Corresponding source code
Just I've checked that ftmac.c functionalities on x86_64.
The reported bug is reproduced by fontconfig & freetype
bundled to Mac OS X 10.5. The bundled freetype seems to be
freetype-2.3.5 which is released before Mac OS X 10.5,
thus, it was not ready for Mac OS X 10.5.
Genuine Suitcase font does not make freetype-2.3.5 crashed,
but any ".dfont" files make it crashed. freetype-2.3.5 with
proposed patch does not crash, but still it cannot load any
".dfont" files.
The latest FreeType2 on CVS is already fixed for Mac OS X
10.5, and it can load all ".dfont" in Mac OS X 10.5 even
without the proposed patch. Thus, the complete solution of
the problem is that Apple updates freetype-2.3.5 by latest
one.
Anyway, "*aface" is still a pointer to another pointer
(typed FT_FaceRec*), so checking "*aface != NULL" is not
bad idea. I leave proposed patch as applied, although it
is not required anymore.