[Pkg-fonts-bugs] Bug#664789: [Pkg-fonts-devel] Bug#664789: Bug#664789: [Fontforge-devel] Segmentation Fault after Hitting 'a<Tab>' as Test Pattern in the Kerning Metrics Window

Daniel Kahn Gillmor dkg at fifthhorseman.net
Thu Sep 20 17:36:34 UTC 2012


Control: tags 664789 + patch

On 09/20/2012 08:37 AM, Fabian Greffrath wrote:
> Am 20.03.2012 22:27, schrieb Daniel Kahn Gillmor:
>> Steps to repeat:
>>
>>   From the menu, choose Window > New Metrics Window
>>
>> In the field with the text to display, type any character and then the
>> Tab key (or press the tab key and then any other character).
> 
> I was also able to reproduce this.
> 
>> The backtrace i get during the crash is:
>>
>>
>> #0  u_strncmp (str1=0x0, str2=0x87f6b90, n=0) at ustring.c:97
>> #1  0xb7baeb12 in GListField_NameCompletion (t=0x87f6930, from_tab=1)
>>      at gtextfield.c:3150
> 
> The problem seems to be that GListField_NameCompletion() dereferences
> ti[i]->text, which might be NULL. I have, however, no idea why this is so.

Well, without understanding the root of the problem, we could at least
avoid the dereference with something like the (untested) patch i've
attached here.

I haven't checked if this is still a problem in the latest upstream --
there's been a lot of activity there recently (yay!).  But debian should
still try to fix this sort of bug in the versions we support.

	--dkg
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 664789.diff
Type: text/x-patch
Size: 473 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-fonts-bugs/attachments/20120920/3e614dfb/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 1030 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-fonts-bugs/attachments/20120920/3e614dfb/attachment.pgp>


More information about the Pkg-fonts-bugs mailing list