From 329f2401082011007d9ce12b15ce0225cd267c57 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Tue, 9 Oct 2018 23:02:53 -0400 Subject: [PATCH] [aat] Set embedded sanitizer max ops really high Since we consume it legitimately during shaping. --- src/hb-aat-layout-common.hh | 1 + src/hb-machinery.hh | 2 ++ 2 files changed, 3 insertions(+) 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;