[truetype] In `ItemVariationStore`, value 0xFFFF for `dataCount` is valid.

It corresponds to outer indices of 0 to 0xFFFE.

* src/truetype/ttgxvar.c (tt_var_load_item_variation_store): Remove invalid
code.
This commit is contained in:
Behdad Esfahbod 2022-11-09 15:41:34 -07:00 committed by Werner Lemberg
parent 109179c70e
commit 9be958ca39
1 changed files with 0 additions and 10 deletions

View File

@ -525,16 +525,6 @@
goto Exit;
}
/* new in OpenType 1.8.4: inner & outer index equal to 0xFFFF */
/* has a special meaning (i.e., no variation data for this item) */
if ( itemStore->dataCount == 0xFFFFU )
{
FT_TRACE2(( "ft_var_load_item_variation_store:"
" dataCount too large\n" ));
error = FT_THROW( Invalid_Table );
goto Exit;
}
/* make temporary copy of item variation data offsets; */
/* we will parse region list first, then come back */
if ( FT_QNEW_ARRAY( dataOffsetArray, itemStore->dataCount ) )