From: Jean Guyomarc'h Date: Fri, 26 Aug 2016 13:00:52 +0000 (+0200) Subject: elementary: make sure we don't iterate out of bounds X-Git-Tag: upstream/1.20.0~4585 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=322adb2e035fec05de109568934a013afe0b9edb;p=platform%2Fupstream%2Fefl.git elementary: make sure we don't iterate out of bounds The carray iterator will end iterating only when it finds a NULL object. We must make sure the last element of the array is NULL to avoid out of bounds access. --- diff --git a/src/lib/elementary/elc_fileselector.c b/src/lib/elementary/elc_fileselector.c index 414bb85..81b6ba2 100644 --- a/src/lib/elementary/elc_fileselector.c +++ b/src/lib/elementary/elc_fileselector.c @@ -859,6 +859,7 @@ _process_children_cb(void *data, void *values) promises[3] = efl_model_property_get(child, "size"); promises[4] = efl_model_property_get(child, "mtime"); promises[5] = efl_model_property_get(child, "mime_type"); + promises[6] = NULL; promise_all = eina_promise_all(eina_carray_iterator_new((void**)promises)); ++(lreq->item_total);