From 274f4c726f461f49f54a79557d63bf95d22903cf Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 12 Nov 2018 14:24:36 -0500 Subject: [PATCH] Rename check_array2() to check_array() --- src/hb-aat-layout-kerx-table.hh | 2 +- src/hb-machinery.hh | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/hb-aat-layout-kerx-table.hh b/src/hb-aat-layout-kerx-table.hh index 6e9f3007..f075a270 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 fa2c7b3a..ce6c9453 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 -- GitLab