From: KoziarekBeata <b.koziarek@samsung.com>

Subject: [E-devel] [Edje][Patch] Patch with NULL checks for some
functions in edje_entry file

This patch contains NULL checks  for some functions in edje_entry file.

Lack of these NULL checks after calling these function causes
segmentation faults.



SVN revision: 77719
This commit is contained in:
KoziarekBeata 2012-10-10 08:06:27 +00:00 committed by Carsten Haitzler
parent 74e42856be
commit 698265a251
1 changed files with 3 additions and 0 deletions

View File

@ -217,6 +217,7 @@ _text_filter_text_prepend(Entry *en, Evas_Textblock_Cursor *c, const char *text)
Edje_Text_Insert_Filter_Callback *cb;
Eina_List *l;
EINA_SAFETY_ON_NULL_RETURN(text);
text2 = strdup(text);
EINA_LIST_FOREACH(en->rp->edje->text_insert_filter_callbacks, l, cb)
{
@ -243,6 +244,7 @@ _text_filter_format_prepend(Entry *en, Evas_Textblock_Cursor *c, const char *tex
Edje_Text_Insert_Filter_Callback *cb;
Eina_List *l;
EINA_SAFETY_ON_NULL_RETURN(text);
text2 = strdup(text);
EINA_LIST_FOREACH(en->rp->edje->text_insert_filter_callbacks, l, cb)
{
@ -319,6 +321,7 @@ _text_filter_markup_prepend(Entry *en, Evas_Textblock_Cursor *c, const char *tex
Edje_Text_Insert_Filter_Callback *cb;
Eina_List *l;
EINA_SAFETY_ON_NULL_RETURN(text);
text2 = strdup(text);
EINA_LIST_FOREACH(en->rp->edje->text_insert_filter_callbacks, l, cb)
{