shithub: freetype+ttf2subf

Download patch

ref: 4a19a53d5a89d13047b64c4972252e6af2e8badc
parent: e5038be70414cf66da6c4d5ce4e30375884c30d8
author: Werner Lemberg <[email protected]>
date: Tue Feb 4 08:37:19 EST 2020

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

The font that exceeds the old limit is Constantine, version 1.001.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2020-02-04  Werner Lemberg  <[email protected]>
+
+	* 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  <[email protected]>
 
 	[base] Fix `FREETYPE_PROPERTIES=type1:hinting-engine=adobe`.
--- 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 */