summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKoziarekBeata <b.koziarek@samsung.com>2012-10-10 08:06:27 +0000
committerCarsten Haitzler <raster@rasterman.com>2012-10-10 08:06:27 +0000
commit698265a251da51df536b99d20cc8c7e0c10c7423 (patch)
tree4c9982736e8ee768b82835200339fcaf391de10d
parent74e42856be8dca7e654f1d7cb2c89400f3b16ee0 (diff)
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
-rw-r--r--legacy/edje/src/lib/edje_entry.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/legacy/edje/src/lib/edje_entry.c b/legacy/edje/src/lib/edje_entry.c
index d5530ab6e4..9fc5201921 100644
--- a/legacy/edje/src/lib/edje_entry.c
+++ b/legacy/edje/src/lib/edje_entry.c
@@ -217,6 +217,7 @@ _text_filter_text_prepend(Entry *en, Evas_Textblock_Cursor *c, const char *text)
217 Edje_Text_Insert_Filter_Callback *cb; 217 Edje_Text_Insert_Filter_Callback *cb;
218 Eina_List *l; 218 Eina_List *l;
219 219
220 EINA_SAFETY_ON_NULL_RETURN(text);
220 text2 = strdup(text); 221 text2 = strdup(text);
221 EINA_LIST_FOREACH(en->rp->edje->text_insert_filter_callbacks, l, cb) 222 EINA_LIST_FOREACH(en->rp->edje->text_insert_filter_callbacks, l, cb)
222 { 223 {
@@ -243,6 +244,7 @@ _text_filter_format_prepend(Entry *en, Evas_Textblock_Cursor *c, const char *tex
243 Edje_Text_Insert_Filter_Callback *cb; 244 Edje_Text_Insert_Filter_Callback *cb;
244 Eina_List *l; 245 Eina_List *l;
245 246
247 EINA_SAFETY_ON_NULL_RETURN(text);
246 text2 = strdup(text); 248 text2 = strdup(text);
247 EINA_LIST_FOREACH(en->rp->edje->text_insert_filter_callbacks, l, cb) 249 EINA_LIST_FOREACH(en->rp->edje->text_insert_filter_callbacks, l, cb)
248 { 250 {
@@ -319,6 +321,7 @@ _text_filter_markup_prepend(Entry *en, Evas_Textblock_Cursor *c, const char *tex
319 Edje_Text_Insert_Filter_Callback *cb; 321 Edje_Text_Insert_Filter_Callback *cb;
320 Eina_List *l; 322 Eina_List *l;
321 323
324 EINA_SAFETY_ON_NULL_RETURN(text);
322 text2 = strdup(text); 325 text2 = strdup(text);
323 EINA_LIST_FOREACH(en->rp->edje->text_insert_filter_callbacks, l, cb) 326 EINA_LIST_FOREACH(en->rp->edje->text_insert_filter_callbacks, l, cb)
324 { 327 {