[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ft] Random crash in FRABK.TTF
From: |
Boris Letocha |
Subject: |
[ft] Random crash in FRABK.TTF |
Date: |
Mon, 5 Mar 2007 12:42:59 +0100 |
Hi,
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 interpretter. 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:
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 let me know if you agree with my fix.
Thanks,
Boris
FRABK.ZIP
Description: FRABK.ZIP
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [ft] Random crash in FRABK.TTF,
Boris Letocha <=