From: Jihoon Kim <jihoon48.kim@samsung.com>

Subject: [E-devel] [PATCH] check NULL parameter in edje entry

This simple patch is for checking NULL parameter in the callback
functions
related to input method framework.
I think it is necessary for safety.



SVN revision: 61890
This commit is contained in:
Jihoon Kim 2011-07-29 11:48:56 +00:00 committed by Carsten Haitzler
parent e9ec7403d4
commit c49d6b9916
1 changed files with 3 additions and 3 deletions

View File

@ -2694,7 +2694,7 @@ _edje_entry_imf_event_commit_cb(void *data, int type __UNUSED__, void *event)
Evas_Textblock_Cursor *tc;
Eina_Bool cursor_move = EINA_FALSE;
if (!rp) return ECORE_CALLBACK_PASS_ON;
if ((!rp) || (!ev) || (!ev->str)) return ECORE_CALLBACK_PASS_ON;
en = rp->entry_data;
if ((!en) || (rp->part->type != EDJE_PART_TYPE_TEXTBLOCK) ||
@ -2779,7 +2779,7 @@ _edje_entry_imf_event_preedit_changed_cb(void *data, int type __UNUSED__, void *
int i;
Eina_Bool preedit_end_state = EINA_FALSE;
if (!rp) return ECORE_CALLBACK_PASS_ON;
if ((!rp) || (!ev)) return ECORE_CALLBACK_PASS_ON;
en = rp->entry_data;
if ((!en) || (rp->part->type != EDJE_PART_TYPE_TEXTBLOCK) ||
@ -2873,7 +2873,7 @@ _edje_entry_imf_event_delete_surrounding_cb(void *data, int type __UNUSED__, voi
Evas_Textblock_Cursor *del_start, *del_end;
int cursor_pos;
if (!rp) return ECORE_CALLBACK_PASS_ON;
if ((!rp) || (!ev)) return ECORE_CALLBACK_PASS_ON;
en = rp->entry_data;
if ((!en) || (rp->part->type != EDJE_PART_TYPE_TEXTBLOCK) ||
(rp->part->entry_mode < EDJE_ENTRY_EDIT_MODE_SELECTABLE))