edje: fix CID 1062226 - Dereference after null check.
authorCedric BAIL <cedric@efl.so>
Mon, 14 Oct 2013 11:45:26 +0000 (13:45 +0200)
committerCedric BAIL <cedric@efl.so>
Mon, 14 Oct 2013 11:45:26 +0000 (13:45 +0200)
It seems to be possible in some badly crafted edj to trigger that path.

src/bin/edje/edje_cc_handlers.c

index dc01352..9ad50f6 100644 (file)
@@ -5192,9 +5192,8 @@ st_collections_group_parts_part_description_inherit(void)
             if (min_dst)
               {
                   WRN("%s:%i: couldn't find an exact match in part '%s' when looking for '%s' %lf. Falling back to nearest one '%s' %lf.",
-                      file_in, line - 1, ep->name, parent_name, parent_val, parent->state.name, parent->state.value);
+                      file_in, line - 1, ep->name, parent_name, parent_val, parent ? parent->state.name : NULL, parent ? parent->state.value : NULL);
                }
-                    
           }
 
         if (!parent)