freetype
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ft] Random crash in FRABK.TTF


From: Werner LEMBERG
Subject: Re: [ft] Random crash in FRABK.TTF
Date: Mon, 09 Apr 2007 10:45:16 +0200 (CEST)

Sorry for the late reply.

> I think I have found reason for crash in case this font which has
> error in bytecode, is loaded after another font which leaves
> initialized "exec->zpX.n_points" to bigger number then 9.  Of course
> you need to have enabled bytecode interpreter.  It is not
> reproducible in ftview or ftstring because for first font it is
> initialized correctly.
> 
> I fixed it adding these lines into ttinterp.c:

Your fix looks good -- initialization of those variables don't do any
harm, I think.

>     exec->zp0.n_points   = 0;
>     exec->zp0.n_contours = 0;
>     exec->zp1.n_points   = 0;
>     exec->zp1.n_contours = 0;
>     exec->zp2.n_points   = 0;
>     exec->zp2.n_contours = 0;
> After these in method TT_Load_Context:
>     exec->pts.n_points   = 0;
>     exec->pts.n_contours = 0;

Please provide a patch with `diff -u' (and a separate ChangeLog entry).


    Werner




reply via email to

[Prev in Thread] Current Thread [Next in Thread]