提交 274f4c72 编写于 作者: B Behdad Esfahbod

Rename check_array2() to check_array()

上级 e014405a
...@@ -267,7 +267,7 @@ struct KerxSubTableFormat1 ...@@ -267,7 +267,7 @@ struct KerxSubTableFormat1
unsigned int kern_idx = Format1EntryT::kernActionIndex (entry); unsigned int kern_idx = Format1EntryT::kernActionIndex (entry);
kern_idx = Types::offsetToIndex (kern_idx, &table->machine, kernAction.arrayZ); kern_idx = Types::offsetToIndex (kern_idx, &table->machine, kernAction.arrayZ);
const FWORD *actions = &kernAction[kern_idx]; 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; depth = 0;
return false; return false;
......
...@@ -343,11 +343,11 @@ struct hb_sanitize_context_t : ...@@ -343,11 +343,11 @@ struct hb_sanitize_context_t :
} }
template <typename T> template <typename T>
inline bool check_array2 (const T *base, inline bool check_array (const T *base,
unsigned int a, unsigned int a,
unsigned int b) const 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> template <typename Type>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册