bu5hm4n pushed a commit to branch master.

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

commit f953909f5965ff5f9bef49c87504fcfac9d51e7b
Author: Wonki Kim <wonki_....@samsung.com>
Date:   Tue Aug 4 11:45:03 2020 +0000

    evas: fix a potentional error of null deref
    
    this is a patch to fix a potentional error by null dereferencing.
    
    Reviewed-by: Marcel Hollerbach <m...@marcel-hollerbach.de>
    Differential Revision: https://phab.enlightenment.org/D12089
---
 src/lib/evas/common/evas_image_main.c | 1 +
 1 file changed, 1 insertion(+)

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)
    if (!ie->flags.alpha) return;
 
    s = evas_cache_image_pixels(ie);
+   if (!s) return;
    se = s + (ie->w * ie->h);
    while (s < se)
      {

-- 


Reply via email to