HomePhabricator

Evas text: set NULL free'd pointers in evas_object_text_free()

Authored by id213sin on Feb 15 2016, 2:41 AM.

Description

Evas text: set NULL free'd pointers in evas_object_text_free()

Summary:
_render_pre() function could be called for an object which is
going to be deleted. According to state changes of the object,
text could be recalculated with free'd pointers. It caused an
invalid read and crash.
@fix

Test Plan:

  1. Apply D1747.
  2. Run elementary_test.
  3. Put any character in elm_entry and change paragraph direction.
  4. Put any character again.
  5. It can cause a crash which is caused by invalid read in Evas Text.

Reviewers: herdsman, woohyun, tasn, raster

Subscribers: cedric, jpeg

Differential Revision: https://phab.enlightenment.org/D3445

Details

Committed
tasnFeb 15 2016, 2:41 AM
Differential Revision
D3445: Evas text: set NULL free'd pointers in evas_object_text_free()
Parents
rEFLd79a1ade6c00: Evas textblock: ifdef unused 'hyphens' code
Branches
Unknown
Tags
Unknown