summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2022-11-09 15:41:34 -0700
committerWerner Lemberg <wl@gnu.org>2022-11-12 16:41:20 +0100
commit9be958ca39cdca0753ba99b741658733d1655d54 (patch)
tree2aebab8e8d2a4e3c96a77929c46bcf08a5938020
parent109179c70ee8c9f101dd49700acbd9df124f9b1c (diff)
downloadfreetype2-9be958ca39cdca0753ba99b741658733d1655d54.tar.gz
[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.
-rw-r--r--src/truetype/ttgxvar.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/truetype/ttgxvar.c b/src/truetype/ttgxvar.c
index 71ff20e35..f9960c045 100644
--- a/src/truetype/ttgxvar.c
+++ b/src/truetype/ttgxvar.c
@@ -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 ) )