raster pushed a commit to branch master.

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

commit abe131d1d7c6fc8963a27620e315fe511a6b3576
Author: Vivek Ellur <vivek.el...@samsung.com>
Date:   Wed Dec 23 19:12:06 2015 +0900

    edje_embryo: Fix null dereference issue
    
    Summary:
    Fix Coverity issue ID 1299026
    
    Signed-off-by: Vivek Ellur <vivek.el...@samsung.com>
    
    Reviewers: cedric, raster
    
    Reviewed By: raster
    
    Subscribers: raster, cedric
    
    Differential Revision: https://phab.enlightenment.org/D3218
---
 src/lib/edje/edje_embryo.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/lib/edje/edje_embryo.c b/src/lib/edje/edje_embryo.c
index 2595603..c4cba4f 100644
--- a/src/lib/edje/edje_embryo.c
+++ b/src/lib/edje/edje_embryo.c
@@ -1293,6 +1293,7 @@ _edje_embryo_fn_set_tween_state_anim(Embryo_Program *ep, 
Embryo_Cell *params)
         if (HASNPARAMS(8))
           {
              GETSTR(tmp, params[8]);
+             if (!tmp) return 0;
              if (!strcmp(tmp, "CURRENT"))
                anim_type |= EDJE_TWEEN_MODE_OPT_FROM_CURRENT;
           }
@@ -1303,6 +1304,7 @@ _edje_embryo_fn_set_tween_state_anim(Embryo_Program *ep, 
Embryo_Cell *params)
         if (HASNPARAMS(9))
           {
              GETSTR(tmp, params[9]);
+             if (!tmp) return 0;
              if (!strcmp(tmp, "CURRENT"))
                anim_type |= EDJE_TWEEN_MODE_OPT_FROM_CURRENT;
           }
@@ -1319,6 +1321,7 @@ _edje_embryo_fn_set_tween_state_anim(Embryo_Program *ep, 
Embryo_Cell *params)
         if (HASNPARAMS(10))
           {
              GETSTR(tmp, params[10]);
+             if (!tmp) return 0;
              if (!strcmp(tmp, "CURRENT"))
                anim_type |= EDJE_TWEEN_MODE_OPT_FROM_CURRENT;
           }
@@ -1335,6 +1338,7 @@ _edje_embryo_fn_set_tween_state_anim(Embryo_Program *ep, 
Embryo_Cell *params)
         if (HASNPARAMS(12))
           {
              GETSTR(tmp, params[10]);
+             if (!tmp) return 0;
              if (!strcmp(tmp, "CURRENT"))
                anim_type |= EDJE_TWEEN_MODE_OPT_FROM_CURRENT;
           }

-- 


Reply via email to