ecore_event: fix ecore event handler iterator range

event handler start at 1 (see _ecore_event_message_handler_type_new and
_ecore_event_message_handler_efl_object_constructor) so that handlers[0] is not
allocated. this patch avoid invalid memory access.

this fixes T7349
Differential Revision: https://phab.enlightenment.org/D6966
This commit is contained in:
Yeongjong Lee 2018-09-03 15:55:13 +00:00 committed by Marcel Hollerbach
parent 40cce4620e
commit 3f306491a3
1 changed files with 1 additions and 1 deletions

View File

@ -314,7 +314,7 @@ _ecore_event_message_handler_efl_object_destructor(Eo *obj, Ecore_Event_Message_
{
free(h);
}
for (i = 0; i <= pd->event_type_count; i++)
for (i = 1; i <= pd->event_type_count; i++)
{
EINA_INLIST_FREE(pd->handlers[i], h)
{