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

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