commit | 8ef8072ba151dc06214ee70985a7fb03ebc2932f | [log] [tgz] |
---|---|---|
author | Werner Lemberg <wl@gnu.org> | Tue Oct 19 22:59:46 2021 +0200 |
committer | Werner Lemberg <wl@gnu.org> | Tue Oct 19 22:59:46 2021 +0200 |
tree | fe9c771d7e7c1f3943dcfe924d8ae6e1013821aa | |
parent | 38b349c41b2456d533cf60fb966a32d1a665dc8f [diff] |
[bdf, cid, pfr, winfonts] Improve rejection of other font formats. This is mainly for better diagnostics of malformed fonts. * src/bdf/bdflib.c (_bfd_readstream): Stop font format testing if the first input line is too long or doesn't end with `\r` or `\n`. * src/cid/cidparse.c (cid_parser_new): Don't handle too short input as an error but as an unknown format. * src/pfr/pfrobjs.c (pfr_face_init): Ditto. * src/winfonts/winfnt.c (fnt_font_load, fnt_face_get_dll_font): Ditto.