d609b7c158
FreeType tries to sanitize strike header data; we now reject completely broken ones. * include/freetype/internal/tttypes.h (TT_FaceRec): New `sbit_strike_map' array pointer. * src/base/ftobjs.c (FT_Match_Size): Reject matches where either width or height would be zero. Add tracing message in case of error. * src/sfnt/sfobjs.c (sfnt_load_face): Populate `sbit_strike_map', only using (more or less) valid strike header data for FT_Face's `available_sizes' array. (sfnt_done_face): Updated. * src/sfnt/ttsbit.c (tt_face_set_sbit_strike): Use `sbit_strike_map'. (tt_face_load_strike_metrics): Improve tracing. * src/truetype/ttdriver.c (tt_size_select): Use `sbit_strike_map'. |
||
---|---|---|
.. | ||
Jamfile | ||
module.mk | ||
pngshim.c | ||
pngshim.h | ||
rules.mk | ||
sfdriver.c | ||
sfdriver.h | ||
sferrors.h | ||
sfnt.c | ||
sfntpic.c | ||
sfntpic.h | ||
sfobjs.c | ||
sfobjs.h | ||
ttbdf.c | ||
ttbdf.h | ||
ttcmap.c | ||
ttcmap.h | ||
ttcmapc.h | ||
ttkern.c | ||
ttkern.h | ||
ttload.c | ||
ttload.h | ||
ttmtx.c | ||
ttmtx.h | ||
ttpost.c | ||
ttpost.h | ||
ttsbit.c | ||
ttsbit.h |