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 3c5dc3cd1e349673a6658c3ef0206ce4705dbc91
Author: Cedric BAIL <[email protected]>
AuthorDate: Sun Nov 8 18:15:26 2026 -0600
elementary: changed,user content is not freed before its listeners run
Typing into a text object builds the inserted string (the input filters
return a copy), puts it in the Efl.Text_Change_Info of changed,user,
and freed it before it called the listeners. A listener that read
info->content read freed memory, garbage characters at best and an
invalid read under valgrind. The string is now freed after the event.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
---
src/lib/elementary/efl_ui_internal_text_interactive.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/lib/elementary/efl_ui_internal_text_interactive.c b/src/lib/elementary/efl_ui_internal_text_interactive.c
index d1af70e27d..447c0c48e0 100644
--- a/src/lib/elementary/efl_ui_internal_text_interactive.c
+++ b/src/lib/elementary/efl_ui_internal_text_interactive.c
@@ -1548,15 +1548,15 @@ _key_down_cb(void *data EINA_UNUSED, Evas *e EINA_UNUSED, Evas_Object *obj, void
changed_user = EINA_TRUE;
ev->event_flags |= EVAS_EVENT_FLAG_ON_HOLD;
-
- if (free_string) free(string);
}
}
end:
if (changed_user)
{
+ // info.content is the string: it is freed once the listeners are done
efl_event_callback_call(obj, EFL_TEXT_INTERACTIVE_EVENT_CHANGED_USER, &info);
}
+ if (free_string) free(string);
(void) 0;
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.