diff options
author | Youngbok Shin <youngb.shin@samsung.com> | 2020-09-24 09:12:06 +0000 |
---|---|---|
committer | Christopher Michael <devilhorns@comcast.net> | 2020-09-28 13:44:50 -0400 |
commit | 85a0af8281ffd8fd28f0e96657da6e0550225ca8 (patch) | |
tree | 62342e021236b273b9926a3828fd75e9874643d4 | |
parent | 4700af9c7ddb50270e1bd12303d31d6da176aa87 (diff) | |
download | efl-85a0af8281ffd8fd28f0e96657da6e0550225ca8.tar.gz |
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
-rw-r--r-- | src/lib/evas/common/evas_font_draw.c | 2 |
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, DATA32 coltab[16], col; DATA16 mtab[16], v; + if (!dst) return; + // FIXME: Use dw, dh for scaling glyphs... (void) dw; (void) dh; |