Hi list,
I got this answer for lilypond related fontforge bug from upstream, but
haven't time to check it. Hopefully I'll have a but more time in two or
three days.
-------- Eredeti üzenet --------
Tárgy: Re: Debian Bug#326788: fontforge crashes when compiling lilypond
Dátum: 09 Sep 2005 11:57:12 -0700
Feladó: George Williams <[EMAIL PROTECTED]>
Szervezet: PfaEdit
Címzett: Chanop Silpa-Anan <[EMAIL PROTECTED]>, Thomas Bushnell
BSG <[EMAIL PROTECTED]>, [EMAIL PROTECTED]
CC: [EMAIL PROTECTED], List for Frugalware
developers <[email protected]>
Hivatkozások: <[EMAIL PROTECTED]>
On Wed, 2005-09-07 at 00:52, Chanop Silpa-Anan wrote:
Somewhere in the altuni data structure, altuni->next points to a garbage
address. Thomas has provided the test case from his web site.
On Wed, 2005-09-07 at 10:33, CSÉCSY László wrote:
/bin/sh: line 1: 14587 Segmentation fault /usr/bin/fontforge
-script emmentaler-11.pe
make[1]: *** [out/PFAemmentaler-11.pfa] Error 139
--
Bye
Boobaa
---------------------
http://boobaa.ajrg.hu
*** fvfonts.c~ 2005-09-09 11:49:44.000000000 -0700
--- fvfonts.c 2005-09-09 11:49:44.000000000 -0700
***************
*** 151,156 ****
--- 151,174 ----
return( head );
}
+ static struct altuni *AltUniCopy(struct altuni *altuni,SplineFont *noconflicts) {
+ struct altuni *head=NULL, *last=NULL, *cur;
+
+ while ( altuni!=NULL ) {
+ if ( noconflicts==NULL || SFGetChar(noconflicts,altuni->unienc,NULL)==NULL ) {
+ cur = chunkalloc(sizeof(struct altuni));
+ cur->unienc = altuni->unienc;
+ if ( head==NULL )
+ head = cur;
+ else
+ last->next = cur;
+ last = cur;
+ }
+ altuni = altuni->next;
+ }
+ return( head );
+ }
+
SplineChar *SplineCharCopy(SplineChar *sc,SplineFont *into) {
SplineChar *nsc = SplineCharCreate();
#ifdef FONTFORGE_CONFIG_TYPE3
***************
*** 194,199 ****
--- 212,218 ----
}
nsc->kerns = NULL;
nsc->possub = PSTCopy(nsc->possub,nsc,sc->parent);
+ nsc->altuni = AltUniCopy(nsc->altuni,into);
if ( sc->parent!=NULL && into->order2!=sc->parent->order2 )
SCConvertOrder(nsc,into->order2);
return(nsc);
_______________________________________________
Frugalware-devel mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-devel