From c3dbcb2447dcdc01050fdb87533affabe42f154a Mon Sep 17 00:00:00 2001 From: ali Date: Fri, 13 Dec 2019 23:23:15 +0000 Subject: [PATCH] edje_entry: real part protection check Fix T8524 Reviewed-by: Cedric BAIL Differential Revision: https://phab.enlightenment.org/D10875 --- src/lib/edje/edje_entry.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib/edje/edje_entry.c b/src/lib/edje/edje_entry.c index 14696182d1..92bc0df031 100644 --- a/src/lib/edje/edje_entry.c +++ b/src/lib/edje/edje_entry.c @@ -4400,7 +4400,10 @@ Eina_Bool _edje_text_cursor_coord_set(Edje_Real_Part *rp, Efl_Text_Cursor_Handle *c, Evas_Coord x, Evas_Coord y) { + if ((rp->type != EDJE_RP_TYPE_TEXT) || + (!rp->typedata.text)) return EINA_FALSE; Entry *en = rp->typedata.text->entry_data; + if (!en) return EINA_FALSE; if ((c == _cursor_get(rp, EDJE_CURSOR_SELECTION_BEGIN)) || (c == _cursor_get(rp, EDJE_CURSOR_SELECTION_END))) {