Commit a45da2534960586fabea22481bd21ed5ed766022

Jakub Alba 2020-05-08T10:59:37

* src/truetype/ttinterp.c (TT_RunIns): Adjust loop counter (#58319). The font that exceeds the old limit is Icono Regular, version 1.00000.

diff --git a/ChangeLog b/ChangeLog
index b53c099..05ae6f8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2020-05-08  Jakub Alba  <jalba@vewd.com>
+
+	* src/truetype/ttinterp.c (TT_RunIns): Adjust loop counter (#58319).
+
+	The font that exceeds the old limit is Icono Regular, version
+	1.00000.
+
 2020-05-03  Alexei Podtelezhnikov  <apodtele@gmail.com>
 
 	* builds/freetype.mk: Refactor for readability.
diff --git a/src/truetype/ttinterp.c b/src/truetype/ttinterp.c
index 32f676a..3215040 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 + 10 * exc->cvtSize;
+      exc->loopcall_counter_max = 300 + 22 * exc->cvtSize;
 
     /* as a protection against an unreasonable number of CVT entries  */
     /* we assume at most 100 control values per glyph for the counter */