summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorJaehyun Cho <jae_hyun.cho@samsung.com>2021-02-04 11:00:14 +0900
committerJaehyun Cho <jae_hyun.cho@samsung.com>2021-02-04 11:00:14 +0900
commitd3d3af369bd84a7e0a4d4d2e4e9708104c2bbdf7 (patch)
tree4b6ba2f46b4ebab849deb4d56372bcf5f2359951 /src/lib
parentab969c5915847ba2133608283249c92ebe89c9e8 (diff)
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
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/edje/edje_entry.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/edje/edje_entry.c b/src/lib/edje/edje_entry.c
index ab48c3dd3a..b62c12b631 100644
--- a/src/lib/edje/edje_entry.c
+++ b/src/lib/edje/edje_entry.c
@@ -1279,6 +1279,8 @@ _anchors_update(Evas_Textblock_Cursor *c EINA_UNUSED, Evas_Object *o, Entry *en)
1279 { 1279 {
1280 Evas_Textblock_Rectangle *r; 1280 Evas_Textblock_Rectangle *r;
1281 1281
1282 if (!range) break;
1283
1282 r = range->data; 1284 r = range->data;
1283 *(&(sel->rect)) = *r; 1285 *(&(sel->rect)) = *r;
1284 if (_is_anchors_outside_viewport(y, r->y, r->h, vy, tvh) || 1286 if (_is_anchors_outside_viewport(y, r->y, r->h, vy, tvh) ||