summaryrefslogtreecommitdiff
path: root/src/lib/ecore
diff options
context:
space:
mode:
authorYeongjong Lee <cleanlyj@naver.com>2018-09-03 15:55:13 +0000
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2018-09-03 18:13:32 +0200
commit3f306491a32a1880bccfe64861b5fec2ba09049b (patch)
treeda77b97d3b5e5b2f215852aa6c456b9e9ea41d92 /src/lib/ecore
parent40cce4620e64570824444a1c0346da28601b2f86 (diff)
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
Diffstat (limited to 'src/lib/ecore')
-rw-r--r--src/lib/ecore/ecore_event_message_handler.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/ecore/ecore_event_message_handler.c b/src/lib/ecore/ecore_event_message_handler.c
index f5498832f9..6df1227cf0 100644
--- a/src/lib/ecore/ecore_event_message_handler.c
+++ b/src/lib/ecore/ecore_event_message_handler.c
@@ -314,7 +314,7 @@ _ecore_event_message_handler_efl_object_destructor(Eo *obj, Ecore_Event_Message_
314 { 314 {
315 free(h); 315 free(h);
316 } 316 }
317 for (i = 0; i <= pd->event_type_count; i++) 317 for (i = 1; i <= pd->event_type_count; i++)
318 { 318 {
319 EINA_INLIST_FREE(pd->handlers[i], h) 319 EINA_INLIST_FREE(pd->handlers[i], h)
320 { 320 {