e_mod_effect_rotation: fix svace issue 04/305904/1
authorDoyoun Kang <doyoun.kang@samsung.com>
Tue, 13 Feb 2024 08:08:28 +0000 (17:08 +0900)
committerDoyoun Kang <doyoun.kang@samsung.com>
Tue, 13 Feb 2024 08:09:00 +0000 (17:09 +0900)
Change-Id: I9ec3eae87727220f36857d8b8ff702809310c589

src/e_mod_effect_rotation.c

index 8e5e412f6253d89dc99b775c167eba1f8ced95ce..245e3ad74977a7c5de037aaa6713880328a039ca 100644 (file)
@@ -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);