Bug 209303 - media-libs/freetype-1.3.1-r5: ttf2tfm segfaults on Gentium (maybe others)
Bug#: 209303 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: fonts@gentoo.org Reported By: levertond@googlemail.com
Component: Library
URL: 
Summary: media-libs/freetype-1.3.1-r5: ttf2tfm segfaults on Gentium (maybe others)
Keywords:  
Status Whiteboard: 
Opened: 2008-02-07 22:42 0000
Description:   Opened: 2008-02-07 22:42 0000
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 From David Leverton 2008-02-07 22:43:38 0000 -------
Created an attachment (id=142941) [details]
fix

------- Comment #2 From Ryan Hill 2008-03-19 00:43:09 0000 -------
Created an attachment (id=146536) [details]
freetype-1.4_pre-ttf2tfm-segfault.patch

Hi David.  Can you test this patch for me?

------- Comment #3 From David Leverton 2008-03-19 02:16:27 0000 -------
(In reply to comment #2)
> Created an attachment (id=146536) [edit] [details]
> 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 From Ryan Hill 2008-03-19 02:52:44 0000 -------
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 From Ryan Hill 2008-03-20 04:19:24 0000 -------
should be fixed by freetype-1.4_pre20080316, now in the tree package.masked.

------- Comment #6 From Ryan Hill 2008-03-25 01:05:42 0000 -------
Unmasked.  Thanks for the report.