Skip to content
  • Jany Belluz's avatar
    [truetype] Fix handling of packed deltas in Variation Fonts. · fc55291b
    Jany Belluz authored and Werner Lemberg's avatar Werner Lemberg committed
    * 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.
    fc55291b