From 7af5c5be4d7e841919936a353e79867bd7c3bd02 Mon Sep 17 00:00:00 2001 From: Sunghyun kim Date: Tue, 28 Jan 2020 16:37:19 +0900 Subject: [CVE-2017-9814] Fix CVE Issue https://bugs.freedesktop.org/show_bug.cgi?id=101547 Change-Id: I2b0ecb3ebe9d2ab2550dd74620c389686516ba7f --- src/cairo-truetype-subset.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cairo-truetype-subset.c b/src/cairo-truetype-subset.c index fa33d63e4..17e33ae50 100644 --- a/src/cairo-truetype-subset.c +++ b/src/cairo-truetype-subset.c @@ -1275,7 +1275,7 @@ _cairo_truetype_reverse_cmap (cairo_scaled_font_t *scaled_font, return CAIRO_INT_STATUS_UNSUPPORTED; size = be16_to_cpu (map->length); - map = malloc (size); + map = _cairo_malloc (size); if (unlikely (map == NULL)) return _cairo_error (CAIRO_STATUS_NO_MEMORY); -- cgit v1.2.3