forked from enlightenment/efl
ecore_imf: Add null check condition in ecore_imf module
Summary: Fixed null pointer dereference issue in ecore_imf module @fix Signed-off-by: vivek <vivek.ellur@samsung.com> Reviewers: devilhorns Reviewed By: devilhorns Subscribers: raster, cedric Differential Revision: https://phab.enlightenment.org/D1813
This commit is contained in:
parent
9a74e6aec4
commit
2da804f616
|
@ -569,6 +569,7 @@ ecore_imf_context_ibus_preedit_string_with_attributes_get(Ecore_IMF_Context *ctx
|
|||
EINA_LIST_FOREACH(ibusimcontext->preedit_attrs, l, attr1)
|
||||
{
|
||||
attr2 = (Ecore_IMF_Preedit_Attr *)calloc(1, sizeof(Ecore_IMF_Preedit_Attr));
|
||||
if (!attr2) continue;
|
||||
attr2->preedit_type = attr1->preedit_type;
|
||||
attr2->start_index = attr1->start_index;
|
||||
attr2->end_index = attr1->end_index;
|
||||
|
|
Loading…
Reference in New Issue