forked from enlightenment/efl
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
This commit is contained in:
parent
ab969c5915
commit
d3d3af369b
|
@ -1279,6 +1279,8 @@ _anchors_update(Evas_Textblock_Cursor *c EINA_UNUSED, Evas_Object *o, Entry *en)
|
||||||
{
|
{
|
||||||
Evas_Textblock_Rectangle *r;
|
Evas_Textblock_Rectangle *r;
|
||||||
|
|
||||||
|
if (!range) break;
|
||||||
|
|
||||||
r = range->data;
|
r = range->data;
|
||||||
*(&(sel->rect)) = *r;
|
*(&(sel->rect)) = *r;
|
||||||
if (_is_anchors_outside_viewport(y, r->y, r->h, vy, tvh) ||
|
if (_is_anchors_outside_viewport(y, r->y, r->h, vy, tvh) ||
|
||||||
|
|
Loading…
Reference in New Issue