commit | 5339c75ee6d71fc15a86f2946d3189003359c37d | [log] [tgz] |
---|---|---|
author | Werner Lemberg <wl@gnu.org> | Thu Sep 24 13:39:44 2015 +0200 |
committer | Werner Lemberg <wl@gnu.org> | Thu Sep 24 13:39:44 2015 +0200 |
tree | 26741c42983f1930fd393f432cc29146abb6d397 | |
parent | c409eb18aeeab8545d6ac7bfb03d1199743d99b8 [diff] |
[sfnt] Better checks for invalid cmaps (2/2) (#46019). While the current code in `FT_Get_Next_Char' correctly rejects out-of-bounds glyph indices, it can be extremely slow for malformed cmaps that use 32bit values. This commit tries to improve that. * src/sfnt/ttcmap.c (tt_cmap8_char_next, tt_cmap12_next, tt_cmap12_char_map_binary, tt_cmap13_next, tt_cmap13_char_map_binary): Reject glyph indices larger than or equal to the number of glyphs.