summaryrefslogtreecommitdiff
path: root/src/lib/evas/common/evas_font_draw.c
diff options
context:
space:
mode:
authorYoungbok Shin <youngb.shin@samsung.com>2020-09-24 09:12:06 +0000
committerChristopher Michael <devilhorns@comcast.net>2020-09-28 13:44:50 -0400
commit85a0af8281ffd8fd28f0e96657da6e0550225ca8 (patch)
tree62342e021236b273b9926a3828fd75e9874643d4 /src/lib/evas/common/evas_font_draw.c
parent4700af9c7ddb50270e1bd12303d31d6da176aa87 (diff)
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 <devilhorns@comcast.net> Differential Revision: https://phab.enlightenment.org/D12163
Diffstat (limited to '')
-rw-r--r--src/lib/evas/common/evas_font_draw.c2
1 files changed, 2 insertions, 0 deletions
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,
457 DATA32 coltab[16], col; 457 DATA32 coltab[16], col;
458 DATA16 mtab[16], v; 458 DATA16 mtab[16], v;
459 459
460 if (!dst) return;
461
460 // FIXME: Use dw, dh for scaling glyphs... 462 // FIXME: Use dw, dh for scaling glyphs...
461 (void) dw; 463 (void) dw;
462 (void) dh; 464 (void) dh;