Rename check_array2() to check_array()

This commit is contained in:
Behdad Esfahbod 2018-11-12 14:24:36 -05:00
parent e014405a21
commit 274f4c726f
2 changed files with 5 additions and 5 deletions

View File

@ -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;

View File

@ -343,11 +343,11 @@ struct hb_sanitize_context_t :
}
template <typename T>
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 <typename Type>