Commit 4a19a53d5a89d13047b64c4972252e6af2e8badc

Werner Lemberg 2020-02-04T13:37:19

* src/truetype/ttinterp.c (TT_RunIns): Adjust loop counter (#57732). The font that exceeds the old limit is Constantine, version 1.001.

diff --git a/ChangeLog b/ChangeLog
index 46f213c..7c0c34e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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`.
diff --git a/src/truetype/ttinterp.c b/src/truetype/ttinterp.c
index 3dca88e..32f676a 100644
--- a/src/truetype/ttinterp.c
+++ b/src/truetype/ttinterp.c
@@ -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 */