summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWonki Kim <wonki_.kim@samsung.com>2020-08-04 11:45:03 +0000
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2020-08-04 14:52:28 +0200
commitf953909f5965ff5f9bef49c87504fcfac9d51e7b (patch)
tree860db497c140161a0e05bfac408d9dbd24b15c30
parentee9836c5e78a9b52a5265e6ec4156a025fb6a1a6 (diff)
evas: fix a potentional error of null deref
this is a patch to fix a potentional error by null dereferencing. Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D12089
-rw-r--r--src/lib/evas/common/evas_image_main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/evas/common/evas_image_main.c b/src/lib/evas/common/evas_image_main.c
index 57a9a8c0c5..dc8596a4d8 100644
--- a/src/lib/evas/common/evas_image_main.c
+++ b/src/lib/evas/common/evas_image_main.c
@@ -1122,6 +1122,7 @@ evas_common_image_set_alpha_sparse(Image_Entry *ie)
1122 if (!ie->flags.alpha) return; 1122 if (!ie->flags.alpha) return;
1123 1123
1124 s = evas_cache_image_pixels(ie); 1124 s = evas_cache_image_pixels(ie);
1125 if (!s) return;
1125 se = s + (ie->w * ie->h); 1126 se = s + (ie->w * ie->h);
1126 while (s < se) 1127 while (s < se)
1127 { 1128 {