diff --git a/src/hb-aat-layout-kerx-table.hh b/src/hb-aat-layout-kerx-table.hh index 6e9f30073..f075a270a 100644 --- a/src/hb-aat-layout-kerx-table.hh +++ b/src/hb-aat-layout-kerx-table.hh @@ -267,7 +267,7 @@ struct KerxSubTableFormat1 unsigned int kern_idx = Format1EntryT::kernActionIndex (entry); kern_idx = Types::offsetToIndex (kern_idx, &table->machine, kernAction.arrayZ); const FWORD *actions = &kernAction[kern_idx]; - if (!c->sanitizer.check_array2 (actions, depth, tuple_count)) + if (!c->sanitizer.check_array (actions, depth, tuple_count)) { depth = 0; return false; diff --git a/src/hb-machinery.hh b/src/hb-machinery.hh index fa2c7b3a1..ce6c94535 100644 --- a/src/hb-machinery.hh +++ b/src/hb-machinery.hh @@ -343,11 +343,11 @@ struct hb_sanitize_context_t : } template - inline bool check_array2 (const T *base, - unsigned int a, - unsigned int b) const + inline bool check_array (const T *base, + unsigned int a, + unsigned int b) const { - return this->check_range (base, a * b, T::static_size); + return this->check_range (base, a, b, T::static_size); } template