forked from enlightenment/efl
Edje_Edit: fix defect found by Coverity in ...state_tween_insert_at
Check constraits before creating image structures CID 1351558
This commit is contained in:
parent
f2111102cf
commit
5c0c87cbe8
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue