Update Android port

* src/sfnt.c (sfnt_normalize_blend): Don't crash when axis
variations are not present.
This commit is contained in:
Po Lu 2023-03-27 18:22:23 +08:00
parent 54d79f37ae
commit ee9c0a482c

View file

@ -13582,7 +13582,8 @@ sfnt_normalize_blend (struct sfnt_blend *blend)
/* Now, apply axis variations, but only if the avar table has the
right number of axes. */
if (blend->fvar->axis_count == blend->avar->axis_count)
if (blend->avar && (blend->fvar->axis_count
== blend->avar->axis_count))
{
for (i = 0; i < blend->fvar->axis_count; ++i)
{