From 92da0a3339e97b818d2ba787220d571efb3a5df5 Mon Sep 17 00:00:00 2001 From: Youngbok Shin Date: Thu, 24 Sep 2020 09:12:06 +0000 Subject: [PATCH] evas: sw font draw - protect against null pointer access The image data of dst could be null in a rare case. @fix Reviewed-by: Christopher Michael Differential Revision: https://phab.enlightenment.org/D12163 --- src/lib/evas/common/evas_font_draw.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/evas/common/evas_font_draw.c b/src/lib/evas/common/evas_font_draw.c index 241f772f49..9792e9d408 100644 --- a/src/lib/evas/common/evas_font_draw.c +++ b/src/lib/evas/common/evas_font_draw.c @@ -457,6 +457,8 @@ evas_common_font_glyph_draw(RGBA_Font_Glyph *fg, DATA32 coltab[16], col; DATA16 mtab[16], v; + if (!dst) return; + // FIXME: Use dw, dh for scaling glyphs... (void) dw; (void) dh;