[gvar] Make sure TupleVarHeader has the needed size

Fixes https://crbug.com/oss-fuzz/21026
This commit is contained in:
Ebrahim Byagowi 2020-03-04 11:15:46 +03:30
parent b398748d8b
commit 99b5b3f1b1
2 changed files with 1 additions and 1 deletions

View File

@ -229,7 +229,7 @@ struct GlyphVarData
{
return (index < var_data->tupleVarCount.get_count ()) &&
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);
}