From: Jaehyun Cho Date: Thu, 4 Feb 2021 02:00:14 +0000 (+0900) Subject: edje_entry: fix a potential error of null deref X-Git-Tag: submit/tizen/20210210.005432~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=892495a6a487e45716ff8b0ceda198a153913faa;p=platform%2Fupstream%2Fefl.git edje_entry: fix a potential error of null deref Summary: This is a patch to fix a potential error of null dereferencing. This patch is based on D12087. Reviewers: Hermet, jsuya Reviewed By: jsuya Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D12241 Change-Id: I564443644aabf64e055736c201b8df87f7eced9a --- diff --git a/src/lib/edje/edje_entry.c b/src/lib/edje/edje_entry.c index 8f1f27beb9..b4580831b5 100644 --- a/src/lib/edje/edje_entry.c +++ b/src/lib/edje/edje_entry.c @@ -1402,6 +1402,8 @@ _anchors_update(Evas_Textblock_Cursor *c EINA_UNUSED, Evas_Object *o, Entry *en, { Evas_Textblock_Rectangle *r; + if (!range) break; + r = range->data; *(&(sel->rect)) = *r; if (_is_anchors_outside_viewport(y, r->y, r->h, vy, tvh) ||