forked from enlightenment/efl
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:
parent
ee9836c5e7
commit
f953909f59
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue