[cff] Better max op counting

This commit is contained in:
Behdad Esfahbod 2022-07-18 14:00:14 -06:00
parent 3c84aa8416
commit 3723b8544b
1 changed files with 1 additions and 1 deletions

View File

@ -882,6 +882,7 @@ struct cs_interpreter_t : interpreter_t<ENV>
{
SUPER::env.set_endchar (false);
unsigned max_ops = kMaxOps;
for (;;) {
if (unlikely (!--max_ops))
{
@ -900,7 +901,6 @@ struct cs_interpreter_t : interpreter_t<ENV>
private:
typedef interpreter_t<ENV> SUPER;
unsigned max_ops = kMaxOps;
};
} /* namespace CFF */