[aat] Set embedded sanitizer max ops really high

Since we consume it legitimately during shaping.
This commit is contained in:
Behdad Esfahbod 2018-10-09 23:02:53 -04:00
parent ad76307486
commit 329f240108
2 changed files with 3 additions and 0 deletions

View File

@ -538,6 +538,7 @@ struct hb_aat_apply_context_t :
sanitizer.init (table); sanitizer.init (table);
sanitizer.set_num_glyphs (face->get_num_glyphs ()); sanitizer.set_num_glyphs (face->get_num_glyphs ());
sanitizer.start_processing (); sanitizer.start_processing ();
sanitizer.set_max_ops ((unsigned int) -1);
} }
inline void set_lookup_index (unsigned int i) { lookup_index = i; } inline void set_lookup_index (unsigned int i) { lookup_index = i; }

View File

@ -252,6 +252,8 @@ struct hb_sanitize_context_t :
} }
inline unsigned int get_num_glyphs (void) { return num_glyphs; } 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) inline void start_processing (void)
{ {
this->start = this->blob->data; this->start = this->blob->data;