[gvar] Make sure TupleVarHeader has the needed size
Fixes https://crbug.com/oss-fuzz/21026
This commit is contained in:
parent
b398748d8b
commit
99b5b3f1b1
|
@ -229,7 +229,7 @@ struct GlyphVarData
|
||||||
{
|
{
|
||||||
return (index < var_data->tupleVarCount.get_count ()) &&
|
return (index < var_data->tupleVarCount.get_count ()) &&
|
||||||
var_data_bytes.check_range (current_tuple, TupleVarHeader::min_size) &&
|
var_data_bytes.check_range (current_tuple, TupleVarHeader::min_size) &&
|
||||||
var_data_bytes.check_range (current_tuple, current_tuple->get_data_size ()) &&
|
var_data_bytes.check_range (current_tuple, hb_max (current_tuple->get_data_size (), current_tuple->get_size (axis_count))) &&
|
||||||
current_tuple->get_size (axis_count);
|
current_tuple->get_size (axis_count);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Binary file not shown.
Loading…
Reference in New Issue