diff options
author | Behdad Esfahbod <behdad@behdad.org> | 2023-01-26 14:07:25 -0700 |
---|---|---|
committer | Werner Lemberg <wl@gnu.org> | 2023-01-27 06:53:46 +0100 |
commit | bea675cde69c5250acf40dc195c14d793aec1e5d (patch) | |
tree | 2d1eb2e476c950b6751d5e5a57570a5e521f7460 | |
parent | 82ce172669f132839debe6e50a3a53fe88db9e31 (diff) | |
download | freetype2-bea675cde69c5250acf40dc195c14d793aec1e5d.tar.gz |
[ttgxvar] Fix crash in COLRv1.
This is a stopgap until issue #1202 is properly fixed.
* src/truetype/ttxgvar.c (tt_var_get_item_delta): Check `normalizedcoords`.
-rw-r--r-- | src/truetype/ttgxvar.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/truetype/ttgxvar.c b/src/truetype/ttgxvar.c index 02e809152..74499c17e 100644 --- a/src/truetype/ttgxvar.c +++ b/src/truetype/ttgxvar.c @@ -1009,6 +1009,9 @@ FT_ItemVarDelta returnValue; + if ( !face->blend->normalizedcoords ) + return 0; + /* OpenType 1.8.4+: No variation data for this item * as indices have special value 0xFFFF. */ if ( outerIndex == 0xFFFF && innerIndex == 0xFFFF ) |