[cff] Better max op counting

pull/3732/head
Behdad Esfahbod 3 years ago
parent 3c84aa8416
commit 3723b8544b
  1. 2
      src/hb-cff-interp-cs-common.hh

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

Loading…
Cancel
Save