]> git.eshelyaron.com Git - emacs.git/commitdiff
Update Android port
authorPo Lu <luangruo@yahoo.com>
Mon, 27 Mar 2023 10:22:23 +0000 (18:22 +0800)
committerPo Lu <luangruo@yahoo.com>
Mon, 27 Mar 2023 10:22:23 +0000 (18:22 +0800)
* src/sfnt.c (sfnt_normalize_blend): Don't crash when axis
variations are not present.

src/sfnt.c

index 99649698557cefe1e6f0804121ef01675c8f1a28..f6730857f862bf95bfc1025efcf68ef5f41ccbb5 100644 (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)
        {