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
_______________________________________________
Freetype mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/freetype