evas: sw font draw - protect against null pointer access
authorYoungbok Shin <youngb.shin@samsung.com>
Thu, 24 Sep 2020 09:12:06 +0000 (09:12 +0000)
committerJongmin Lee <jm105.lee@samsung.com>
Tue, 6 Oct 2020 21:10:34 +0000 (06:10 +0900)
The image data of dst could be null in a rare case.
@fix

Reviewed-by: Christopher Michael <devilhorns@comcast.net>
Differential Revision: https://phab.enlightenment.org/D12163

src/lib/evas/common/evas_font_draw.c

index ce9b483..7248fd4 100644 (file)
@@ -522,6 +522,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;