From 892495a6a487e45716ff8b0ceda198a153913faa Mon Sep 17 00:00:00 2001 From: Jaehyun Cho Date: Thu, 4 Feb 2021 11:00:14 +0900 Subject: [PATCH] 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 --- src/lib/edje/edje_entry.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/edje/edje_entry.c b/src/lib/edje/edje_entry.c index 8f1f27b..b458083 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) || -- 2.7.4