summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJihoon Kim <jihoon48.kim@samsung.com>2013-12-19 10:20:42 +0900
committerJihoon Kim <jihoon48.kim@samsung.com>2013-12-19 10:20:42 +0900
commit75e399158c55e76d4408a678bf2cde84f42a40f7 (patch)
tree3a372fe2b7c412d4bc7dece765bb5266a281be7c /src
parentc4b7f83ef6eb6844ca98d195ce3f3417c31c4b98 (diff)
ibusimmodule: fix dereference after null check issue
The variable 'str' was used after checking NULL.
Diffstat (limited to 'src')
-rw-r--r--src/modules/ecore_imf/ibus/ibus_imcontext.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/ecore_imf/ibus/ibus_imcontext.c b/src/modules/ecore_imf/ibus/ibus_imcontext.c
index 44f1b00241..67f22f9434 100644
--- a/src/modules/ecore_imf/ibus/ibus_imcontext.c
+++ b/src/modules/ecore_imf/ibus/ibus_imcontext.c
@@ -686,8 +686,8 @@ _ecore_imf_context_ibus_update_preedit_text_cb(IBusInputContext *ibuscontext EI
686 if (attr == NULL) 686 if (attr == NULL)
687 continue; 687 continue;
688 688
689 attr->start_index = utf8_offset_to_index(str, ibus_attr->start_index); 689 attr->start_index = utf8_offset_to_index(ibusimcontext->preedit_string, ibus_attr->start_index);
690 attr->end_index = utf8_offset_to_index(str, ibus_attr->end_index); 690 attr->end_index = utf8_offset_to_index(ibusimcontext->preedit_string, ibus_attr->end_index);
691 691
692 switch (ibus_attr->type) 692 switch (ibus_attr->type)
693 { 693 {