* src/truetype/ttinterp.c (TT_RunIns): Adjust loop counter (#57732).

The font that exceeds the old limit is Constantine, version 1.001.
This commit is contained in:
Werner Lemberg 2020-02-04 13:37:19 +01:00
parent e5038be704
commit 4a19a53d5a
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2020-02-04 Werner Lemberg <wl@gnu.org>
* src/truetype/ttinterp.c (TT_RunIns): Adjust loop counter (#57732).
The font that exceeds the old limit is Constantine, version 1.001.
2020-01-04 Werner Lemberg <wl@gnu.org>
[base] Fix `FREETYPE_PROPERTIES=type1:hinting-engine=adobe`.

View File

@ -7872,7 +7872,7 @@
FT_MAX( 50,
exc->cvtSize / 10 );
else
exc->loopcall_counter_max = 300 + 8 * exc->cvtSize;
exc->loopcall_counter_max = 300 + 10 * exc->cvtSize;
/* as a protection against an unreasonable number of CVT entries */
/* we assume at most 100 control values per glyph for the counter */