This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch master
in repository efl.
View the commit online.
commit 8617571f31b8a0e3dd122dfc5bf88fccb4824acc
Author: Cedric BAIL <[email protected]>
AuthorDate: Mon Nov 9 00:58:05 2026 -0600
elementary: Exact_Model gives no size to a row that has no index
A composite slice answered after one of its rows left gives that row at
no index (0xFFFFFFFF). Exact_Model finds the storage of a size by index
and fills its compressed list up to it, so measuring such a row would
allocate millions of buffers for a row that is not shown. Its size is
not ready (EAGAIN), and setting one is refused.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
---
src/lib/elementary/efl_ui_exact_model.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/src/lib/elementary/efl_ui_exact_model.c b/src/lib/elementary/efl_ui_exact_model.c
index 9c33709123..80ddc6464f 100644
--- a/src/lib/elementary/efl_ui_exact_model.c
+++ b/src/lib/elementary/efl_ui_exact_model.c
@@ -238,6 +238,9 @@ _efl_ui_exact_model_efl_model_property_set(Eo *obj, Efl_Ui_Exact_Model_Data *pd,
unsigned char found;
index = efl_composite_model_index_get(obj);
+ // (no index: the row left while a slice held it, and has no slot)
+ if (index == 0xFFFFFFFF)
+ return efl_loop_future_rejected(obj, EFL_MODEL_ERROR_INCORRECT_VALUE);
found = _efl_ui_exact_model_slot_find(pd, index, EINA_TRUE, EINA_FALSE);
if (!eina_value_uint_convert(value, &pd->parent->slot[found].width[index % EFL_UI_EXACT_MODEL_CONTENT]))
return efl_loop_future_rejected(obj, EFL_MODEL_ERROR_INCORRECT_VALUE);
@@ -253,6 +256,8 @@ _efl_ui_exact_model_efl_model_property_set(Eo *obj, Efl_Ui_Exact_Model_Data *pd,
unsigned char found;
index = efl_composite_model_index_get(obj);
+ if (index == 0xFFFFFFFF)
+ return efl_loop_future_rejected(obj, EFL_MODEL_ERROR_INCORRECT_VALUE);
found = _efl_ui_exact_model_slot_find(pd, index, EINA_FALSE, EINA_TRUE);
old_value = pd->parent->slot[found].height[index % EFL_UI_EXACT_MODEL_CONTENT];
if (!eina_value_uint_convert(value, &pd->parent->slot[found].height[index % EFL_UI_EXACT_MODEL_CONTENT]))
@@ -300,6 +305,8 @@ _efl_ui_exact_model_efl_model_property_get(const Eo *obj, Efl_Ui_Exact_Model_Dat
unsigned char found;
index = efl_composite_model_index_get(obj);
+ // (no index: the row left while a slice held it, and has no size)
+ if (index == 0xFFFFFFFF) return eina_value_error_new(EAGAIN);
found = _efl_ui_exact_model_slot_find(pd, index, EINA_TRUE, EINA_FALSE);
return eina_value_uint_new(pd->parent->slot[found].width[index % EFL_UI_EXACT_MODEL_CONTENT]);
}
@@ -309,6 +316,7 @@ _efl_ui_exact_model_efl_model_property_get(const Eo *obj, Efl_Ui_Exact_Model_Dat
unsigned char found;
index = efl_composite_model_index_get(obj);
+ if (index == 0xFFFFFFFF) return eina_value_error_new(EAGAIN);
found = _efl_ui_exact_model_slot_find(pd, index, EINA_FALSE, EINA_TRUE);
return eina_value_uint_new(pd->parent->slot[found].height[index % EFL_UI_EXACT_MODEL_CONTENT]);
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.