diff options
author | Jaehyun Cho <jae_hyun.cho@samsung.com> | 2021-02-04 11:00:14 +0900 |
---|---|---|
committer | Jaehyun Cho <jae_hyun.cho@samsung.com> | 2021-02-04 11:00:14 +0900 |
commit | d3d3af369bd84a7e0a4d4d2e4e9708104c2bbdf7 (patch) | |
tree | 4b6ba2f46b4ebab849deb4d56372bcf5f2359951 | |
parent | ab969c5915847ba2133608283249c92ebe89c9e8 (diff) | |
download | efl-d3d3af369bd84a7e0a4d4d2e4e9708104c2bbdf7.tar.gz |
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
-rw-r--r-- | src/lib/edje/edje_entry.c | 2 |
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) { 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) || |