[truetype] Partly revert 5b626281.

Fixes #1118.

* src/truetype/ttpload.c (tt_face_load_hdmx): Do not assume that
`record_size` is rounded even though the records are padded.
This commit is contained in:
Alexei Podtelezhnikov 2021-11-23 16:05:12 -05:00
parent 99086bf224
commit cff026d415
1 changed files with 1 additions and 1 deletions

View File

@ -565,7 +565,7 @@
if ( num_records > 255 ||
( num_records > 0 &&
( record_size > 0x10004UL ||
record_size & 3 ) ) )
record_size < 4 ) ) )
{
error = FT_THROW( Invalid_File_Format );
goto Fail;