commit | ca0111289498f3f6ce28b3d78ff5a54ccdfd2d47 | [log] [tgz] |
---|---|---|
author | Alexei Podtelezhnikov <apodtele@gmail.com> | Sat Jan 08 22:28:44 2022 -0500 |
committer | Alexei Podtelezhnikov <apodtele@gmail.com> | Sat Jan 08 22:28:44 2022 -0500 |
tree | 83348bb906fba674cd5bd1763ae75cc8082b7542 | |
parent | 7a493e3a404cd04ad2d798e985d7441bd2d955ea [diff] |
[sfnt] Fix off-by-one error. The 0-base index is equal to the number of previosly parsed entries. It is an error to adjust it by one to get the number truncated by a stream error. This is probably inconsequential because valid entries are correctly accounted for. * src/sfnt/ttload.c (check_table_dir): Do not adjust the truncated number of tables.