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
This commit is contained in:
Wonki Kim 2020-08-04 11:45:03 +00:00 committed by Marcel Hollerbach
parent ee9836c5e7
commit f953909f59
1 changed files with 1 additions and 0 deletions

View File

@ -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)
{