projects
/
platform
/
upstream
/
efl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
980a327
)
evas: sw font draw - protect against null pointer access
author
Youngbok Shin
<youngb.shin@samsung.com>
Thu, 24 Sep 2020 09:12:06 +0000
(09:12 +0000)
committer
Jongmin 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
patch
|
blob
|
history
diff --git
a/src/lib/evas/common/evas_font_draw.c
b/src/lib/evas/common/evas_font_draw.c
index
ce9b483
..
7248fd4
100644
(file)
--- a/
src/lib/evas/common/evas_font_draw.c
+++ b/
src/lib/evas/common/evas_font_draw.c
@@
-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;