stefan pushed a commit to branch efl-1.25.

http://git.enlightenment.org/core/efl.git/commit/?id=92da0a3339e97b818d2ba787220d571efb3a5df5

commit 92da0a3339e97b818d2ba787220d571efb3a5df5
Author: Youngbok Shin <youngb.s...@samsung.com>
Date:   Thu Sep 24 09:12:06 2020 +0000

    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 <devilho...@comcast.net>
    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;

-- 


Reply via email to