Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 209303 - media-libs/freetype-1.3.1-r5: ttf2tfm segfaults on Gentium (maybe others)
Summary: media-libs/freetype-1.3.1-r5: ttf2tfm segfaults on Gentium (maybe others)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Fonts Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-07 22:42 UTC by David Leverton
Modified: 2008-03-25 01:05 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
fix (1.3.1-ttf2pk.patch,1.02 KB, patch)
2008-02-07 22:43 UTC, David Leverton
Details | Diff
freetype-1.4_pre-ttf2tfm-segfault.patch (freetype-1.4_pre-ttf2tfm-segfault.patch,567 bytes, patch)
2008-03-19 00:43 UTC, Ryan Hill (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description David Leverton 2008-02-07 22:42:34 UTC
The ttf2tfm utility from FreeType 1 segfaults when used on the Gentium font.  To reproduce:

1) install media-libs/freetype-1.3.1-r5
2) install media-fonts/ttf-gentium-1.0.1
3) run ttf2tfm /usr/share/fonts/ttf-gentium/Gentium.ttf
Comment 1 David Leverton 2008-02-07 22:43:38 UTC
Created attachment 142941 [details, diff]
fix
Comment 2 Ryan Hill (RETIRED) gentoo-dev 2008-03-19 00:43:09 UTC
Created attachment 146536 [details, diff]
freetype-1.4_pre-ttf2tfm-segfault.patch

Hi David.  Can you test this patch for me?
Comment 3 David Leverton 2008-03-19 02:16:27 UTC
(In reply to comment #2)
> Created an attachment (id=146536) [edit]
> freetype-1.4_pre-ttf2tfm-segfault.patch
> 
> Hi David.  Can you test this patch for me?

That doesn't make a difference here.  I assume the patch comes from this Debian bug[1], which talks about uninitialised memory, but valgrind doesn't show any errors except for the final segfault, so I think this is a different issue.

[1] http://www.mail-archive.com/debian-bugs-closed@lists.debian.org/msg98580.html
Comment 4 Ryan Hill (RETIRED) gentoo-dev 2008-03-19 02:52:44 UTC
it does.  i just happened to notice i couldn't reproduce your testcase any more when previously i could, and narrowed it down to that patch.  your patch does look correct but i thought i'd check.
Comment 5 Ryan Hill (RETIRED) gentoo-dev 2008-03-20 04:19:24 UTC
should be fixed by freetype-1.4_pre20080316, now in the tree package.masked.
Comment 6 Ryan Hill (RETIRED) gentoo-dev 2008-03-25 01:05:42 UTC
Unmasked.  Thanks for the report.