Blame SOURCES/pango-fixes-get-variations-crash.patch

624e24
commit ad92e199f221499c19f22dce7a16e7d770ad3ae7
624e24
Author: Carsten Pfeiffer <carsten.pfeiffer@gebit.de>
624e24
Date:   Fri Aug 10 16:06:20 2018 +0200
624e24
624e24
    Fix crash in pango_fc_font_key_get_variations() when key is null
624e24
624e24
diff --git a/pango/pangofc-shape.c b/pango/pangofc-shape.c
624e24
index a59ca67c..53269d73 100644
624e24
--- a/pango/pangofc-shape.c
624e24
+++ b/pango/pangofc-shape.c
624e24
@@ -380,8 +380,10 @@ _pango_fc_shape (PangoFont           *font,
624e24
 		    fc_font->is_hinted ? ft_face->size->metrics.x_ppem : 0,
624e24
 		    fc_font->is_hinted ? ft_face->size->metrics.y_ppem : 0);
624e24
 
624e24
-  variations = pango_fc_font_key_get_variations (key);
624e24
-  if (variations)
624e24
+  if (key)
624e24
+  {
624e24
+    variations = pango_fc_font_key_get_variations (key);
624e24
+    if (variations)
624e24
     {
624e24
       guint n_variations;
624e24
       hb_variation_t *hb_variations;
624e24
@@ -391,6 +393,7 @@ _pango_fc_shape (PangoFont           *font,
624e24
 
624e24
       g_free (hb_variations);
624e24
     }
624e24
+  }
624e24
 
624e24
   hb_buffer = acquire_buffer (&free_buffer);
624e24