commit | fc55291b1cbc145da166614f3d7726389ab44a2c | [log] [tgz] |
---|---|---|
author | Jany Belluz <jany.belluz@daltonmaag.com> | Thu Nov 04 11:07:43 2021 +0000 |
committer | Werner Lemberg <wl@gnu.org> | Fri Nov 05 13:53:45 2021 +0100 |
tree | 9dbaf952d3b1e2b4f52437aad00a00187a529d1b | |
parent | 9ed5332fe632ada7de8fd345c9ef579b678c4042 [diff] |
[truetype] Fix handling of packed deltas in Variation Fonts. * src/truetype/ttgxvar (ft_var_readpackeddeltas): Don't expect the number of bytes used to encode the deltas to be higher than the number of encoded values. The specification allows a very compact encoding; for example, a list of 200 zeros can be encoded with just a couple of bytes. We now count the consumed bytes to make sure to not read more than expected.