diff --git a/src/hb-aat-layout-common.hh b/src/hb-aat-layout-common.hh index 22c84255b..3d562e795 100644 --- a/src/hb-aat-layout-common.hh +++ b/src/hb-aat-layout-common.hh @@ -538,6 +538,7 @@ struct hb_aat_apply_context_t : sanitizer.init (table); sanitizer.set_num_glyphs (face->get_num_glyphs ()); sanitizer.start_processing (); + sanitizer.set_max_ops ((unsigned int) -1); } inline void set_lookup_index (unsigned int i) { lookup_index = i; } diff --git a/src/hb-machinery.hh b/src/hb-machinery.hh index 9c73df2ca..5eaec759c 100644 --- a/src/hb-machinery.hh +++ b/src/hb-machinery.hh @@ -252,6 +252,8 @@ struct hb_sanitize_context_t : } inline unsigned int get_num_glyphs (void) { return num_glyphs; } + inline void set_max_ops (unsigned int max_ops_) { max_ops = max_ops_; } + inline void start_processing (void) { this->start = this->blob->data;