forked from enlightenment/efl
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.
This commit is contained in:
parent
5db3357f40
commit
322adb2e03
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue