From 3723b8544b63d4eb95ff1448e4ebfc6a25127360 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 18 Jul 2022 14:00:14 -0600 Subject: [PATCH] [cff] Better max op counting --- src/hb-cff-interp-cs-common.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hb-cff-interp-cs-common.hh b/src/hb-cff-interp-cs-common.hh index 14abf3e80..f93c83ab4 100644 --- a/src/hb-cff-interp-cs-common.hh +++ b/src/hb-cff-interp-cs-common.hh @@ -882,6 +882,7 @@ struct cs_interpreter_t : interpreter_t { SUPER::env.set_endchar (false); + unsigned max_ops = kMaxOps; for (;;) { if (unlikely (!--max_ops)) { @@ -900,7 +901,6 @@ struct cs_interpreter_t : interpreter_t private: typedef interpreter_t SUPER; - unsigned max_ops = kMaxOps; }; } /* namespace CFF */