rimmed pushed a commit to branch master.

http://git.enlightenment.org/tools/eflete.git/commit/?id=1b1d1cf51fde7931ccc1ed71ec32c77eac6868a3

commit 1b1d1cf51fde7931ccc1ed71ec32c77eac6868a3
Author: Mykyta Biliavskyi <m.biliavs...@samsung.com>
Date:   Thu Sep 22 16:20:52 2016 +0300

    Property: correct handle property types.
    
    In case when unknown type of property will be requested - application
    will aborted. This help to avoid dereference "items" pointer.
    
    @svace WGID 20250
    @fix
---
 src/bin/ui/property/property.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/bin/ui/property/property.c b/src/bin/ui/property/property.c
index 59224c5..90ef278 100644
--- a/src/bin/ui/property/property.c
+++ b/src/bin/ui/property/property.c
@@ -204,7 +204,7 @@ Evas_Object *
 property_add(Evas_Object *parent, Property_Mode mode)
 {
    Property_Data *pd;
-   Eina_List *items;
+   Eina_List *items = NULL;
 
    assert(parent != NULL);
 
@@ -293,6 +293,10 @@ property_add(Evas_Object *parent, Property_Mode mode)
          property_demo_init(pd);
          items = property_demo_items_get();
          break;
+       default:
+         ERR("Unrecognized mode [%d] of property block. Appliction will be 
aborted", mode);
+         app_shutdown();
+         abort();
      }
    _items_add(pd->genlist, &items, NULL);
    GENLIST_FILTER_APPLY(pd->genlist);

-- 


Reply via email to