summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorWerner Lemberg <wl@gnu.org>2015-10-15 21:50:15 +0200
committerWerner Lemberg <wl@gnu.org>2015-10-15 21:50:15 +0200
commit24a1fcdfce4e3c1d83596c691b2d2545e380a46e (patch)
treee27f471b48b1764db9652ba14d96198d563b436b /devel
parent911171ac49df97096fd2fe7fc393a898d71192df (diff)
downloadfreetype2-24a1fcdfce4e3c1d83596c691b2d2545e380a46e.tar.gz
[truetype] Add TT_CONFIG_OPTION_MAX_RUNNABLE_OPCODES (#46208).
* devel/ftoption.h, include/freetype/config/ftoption.h (TT_CONFIG_OPTION_MAX_RUNNABLE_OPCODES): New configuration macro. * src/truetype/ttinterp.c (MAX_RUNNABLE_OPCODES): Removed. (TT_RunIns): Updated.
Diffstat (limited to 'devel')
-rw-r--r--devel/ftoption.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/devel/ftoption.h b/devel/ftoption.h
index d4d12451a..0eb832405 100644
--- a/devel/ftoption.h
+++ b/devel/ftoption.h
@@ -693,6 +693,17 @@ FT_BEGIN_HEADER
/*************************************************************************/
+ /* */
+ /* Option TT_CONFIG_OPTION_MAX_RUNNABLE_OPCODES controls the maximum */
+ /* number of bytecode instructions executed for a single run of the */
+ /* bytecode interpreter, needed to prevent infinite loops. You don't */
+ /* want to change this except for very special situations (e.g., making */
+ /* a library fuzzer spend less time to handle broken fonts). */
+ /* */
+#define TT_CONFIG_OPTION_MAX_RUNNABLE_OPCODES 1000000L
+
+
+ /*************************************************************************/
/*************************************************************************/
/**** ****/
/**** T Y P E 1 D R I V E R C O N F I G U R A T I O N ****/