rimmed pushed a commit to branch master.

http://git.enlightenment.org/tools/eflete.git/commit/?id=8c1e76af8b67c2747722cabb5f8b725d72c3348f

commit 8c1e76af8b67c2747722cabb5f8b725d72c3348f
Author: Mykyta Biliavskyi <m.biliavs...@samsung.com>
Date:   Thu Sep 22 16:09:30 2016 +0300

    Project navigator: avoid integer underflow.
    
    @svace WGID 20013
    @fix
---
 src/bin/ui/project_navigator.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/bin/ui/project_navigator.c b/src/bin/ui/project_navigator.c
index 1907e03..833c5c0 100644
--- a/src/bin/ui/project_navigator.c
+++ b/src/bin/ui/project_navigator.c
@@ -316,7 +316,7 @@ _group_add(void *data __UNUSED__,
         item = eina_list_data_get(elm_genlist_item_subitems_get(item));
      }
 
-   if (i != count - 1)
+   if ((i > 0) && (count > 0) && (i != count - 1))
      {
         prefix = widget_prefix_get(group->common.name, i, NULL);
         elm_genlist_item_sorted_insert(project_navigator.genlist,

-- 


Reply via email to