index: Avoid SIGSEV in elm_index_item_sorted_insert
authorYeshwanth Reddivari <r.yeshwanth@samsung.com>
Wed, 18 May 2016 09:31:48 +0000 (18:31 +0900)
committerHermet Park <hermet@hermet.pe.kr>
Wed, 18 May 2016 09:33:07 +0000 (18:33 +0900)
commit5f87f5f67327f4ae5a6404b421a97a71e2a40762
treedbf792fd59c25f151b4879838931ca0d9fa921ab
parent45bc4f30eb5ff01c5f78623375e2128a5e6587bf
index: Avoid SIGSEV in elm_index_item_sorted_insert

Summary:
Avoid SIGSEV in elm_index_item_sorted_insert when cmp_data_func returns >=0
After deleting eo_item and making it NULL in above case, view(it) is created which resulted in crash.

Test Plan: elementary_test -to 'index 2'

Reviewers: singh.amitesh, jpeg, cedric, raster, Hermet

Reviewed By: Hermet

Subscribers: Hermet

Differential Revision: https://phab.enlightenment.org/D3956
src/lib/elementary/elm_index.c