diff options
author | Jean Guyomarc'h <jean.guyomarch@openwide.fr> | 2016-08-26 15:00:52 +0200 |
---|---|---|
committer | Jean Guyomarc'h <jean@guyomarch.bzh> | 2016-08-26 19:45:46 +0200 |
commit | 2d7c73884c6ca5838b2dbd552b9529a4d79fe36b (patch) | |
tree | 73110e2bd0bd10b3e70fcfc612f7fed70f52f5ee | |
parent | 49cc1ce100ba50363bdb425cad5eb53b668d627f (diff) | |
download | efl-2d7c73884c6ca5838b2dbd552b9529a4d79fe36b.tar.gz |
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.
-rw-r--r-- | src/lib/elementary/elc_fileselector.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/elementary/elc_fileselector.c b/src/lib/elementary/elc_fileselector.c index 0cf92b7207..308542bdee 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); |