mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-28 00:59:16 +01:00
[hvgl] Minor bound checking
This commit is contained in:
1 parent
37a8e4af54
commit
de87cea150
1 file changed
+2
-2
@@ -62,12 +62,12 @@ struct deltas_t
|
||||
{
|
||||
const unsigned rows = 4 * segment_count;
|
||||
const unsigned start = column_index * rows;
|
||||
return hb_array (matrix.arrayZ + start, rows);
|
||||
return get_matrix (axis_count, segment_count).sub_array (start, rows);
|
||||
}
|
||||
|
||||
hb_array_t<const HBFLOAT64LE>
|
||||
get_matrix(unsigned axis_count, unsigned segment_count) const
|
||||
{ return hb_array (matrix.arrayZ, (2 * 4) * axis_count * segment_count); }
|
||||
{ return matrix.as_array (2 * 4 * axis_count * segment_count); }
|
||||
|
||||
bool sanitize (hb_sanitize_context_t *c,
|
||||
unsigned axis_count,
|
||||
|
||||
Reference in new issue
Block a user