[beyond-64k] Fail hmtx subsetting if subset too large

This commit is contained in:
Behdad Esfahbod 2023-04-20 11:48:43 -06:00
parent 64ecf8720c
commit 317e3693da
1 changed files with 1 additions and 1 deletions

View File

@ -92,7 +92,7 @@ struct hmtxvmtx
unsigned int length;
H *table = (H *) hb_blob_get_data (dest_blob, &length);
table->numberOfLongMetrics = num_hmetrics;
c->serializer->check_assign (table->numberOfLongMetrics, num_hmetrics, HB_SERIALIZE_ERROR_INT_OVERFLOW);
#ifndef HB_NO_VAR
if (c->plan->normalized_coords)