furrymyad pushed a commit to branch master.

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

commit 5c0c87cbe8012d7ecffc4f1b4e5a33b6e8343b63
Author: Vitalii Vorobiov <vi.vorob...@samsung.com>
Date:   Fri Feb 19 11:22:07 2016 +0000

    Edje_Edit: fix defect found by Coverity in ...state_tween_insert_at
    
    Check constraits before creating image structures
    
    CID 1351558
---
 src/lib/edje/edje_edit.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/lib/edje/edje_edit.c b/src/lib/edje/edje_edit.c
index 96d8cf5..7f30907 100644
--- a/src/lib/edje/edje_edit.c
+++ b/src/lib/edje/edje_edit.c
@@ -8761,7 +8761,10 @@ edje_edit_state_tween_insert_at(Evas_Object *obj, const 
char *part, const char *
    img = (Edje_Part_Description_Image *)pd;
 
    if ((unsigned)place > img->image.tweens_count)
-     return EINA_FALSE;
+     {
+        free(i);
+        return EINA_FALSE;
+     }
 
    /* add to tween list */
    tmp = realloc(img->image.tweens,

-- 


Reply via email to