From: Doyoun Kang Date: Tue, 13 Feb 2024 08:08:28 +0000 (+0900) Subject: e_mod_effect_rotation: fix svace issue X-Git-Tag: accepted/tizen/unified/20240214.163940~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=044bb70dcf7dafa3aa0508e76964e4065d0e407c;p=platform%2Fcore%2Fuifw%2Fe-mod-tizen-effect.git e_mod_effect_rotation: fix svace issue Change-Id: I9ec3eae87727220f36857d8b8ff702809310c589 --- diff --git a/src/e_mod_effect_rotation.c b/src/e_mod_effect_rotation.c index 8e5e412..245e3ad 100644 --- a/src/e_mod_effect_rotation.c +++ b/src/e_mod_effect_rotation.c @@ -398,6 +398,7 @@ _rotation_effect_object_create(Evas_Object *o) h = surface_info.height; pix = eobj->data = malloc(w * h * 4); + if (!pix) goto fail; for (i = 0; i < h; i++) { memcpy(pix, data, surface_info.width * 4); @@ -423,6 +424,7 @@ _rotation_effect_object_create(Evas_Object *o) h = surface_info.height; pix = eobj->data = malloc(w * h * 4); + if (!pix) goto fail; for (i = 0; i < h; i++) { memcpy(pix, data, surface_info.width * 4);