summaryrefslogtreecommitdiff
path: root/cairo/CVE-2018-19876.patch
blob: c9cd71f4ae9177dd22f74f635304a9c590bef72e (plain)
    1 From 90e85c2493fdfa3551f202ff10282463f1e36645 Mon Sep 17 00:00:00 2001
    2 From: Carlos Garcia Campos <cgarcia@igalia.com>
    3 Date: Mon, 19 Nov 2018 12:33:07 +0100
    4 Subject: [PATCH] ft: Use FT_Done_MM_Var instead of free when available in
    5  cairo_ft_apply_variations
    6 
    7 Fixes a crash when using freetype >= 2.9
    8 ---
    9  src/cairo-ft-font.c | 4 ++++
   10  1 file changed, 4 insertions(+)
   11 
   12 diff --git a/src/cairo-ft-font.c b/src/cairo-ft-font.c
   13 index 325dd61b4..981973f78 100644
   14 --- a/src/cairo-ft-font.c
   15 +++ b/src/cairo-ft-font.c
   16 @@ -2393,7 +2393,11 @@ skip:
   17  done:
   18          free (coords);
   19          free (current_coords);
   20 +#if HAVE_FT_DONE_MM_VAR
   21 +        FT_Done_MM_Var (face->glyph->library, ft_mm_var);
   22 +#else
   23          free (ft_mm_var);
   24 +#endif
   25      }
   26  }
   27  
   28 -- 
   29 2.18.1

Generated by cgit