From f0f6176a372ff963c16a40ecff446ae4250772bc Mon Sep 17 00:00:00 2001 From: "sungwook79.park" Date: Tue, 12 Jul 2016 13:21:21 +0900 Subject: [PATCH] fix the issue about TAINTED_ARRAY_INDEX in static analysis tool Change-Id: Ib480489a1031e766d2b97934490f36848ff220b2 Signed-off-by: sungwook79.park --- src/w-input-stt-voice.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/w-input-stt-voice.cpp b/src/w-input-stt-voice.cpp index 6587abe..4d6e8f0 100755 --- a/src/w-input-stt-voice.cpp +++ b/src/w-input-stt-voice.cpp @@ -1207,6 +1207,10 @@ static int get_language_value() } PRINTFUNC(DLOG_DEBUG, "n66 current language value for stt (%s).", disp_lang_array_n66[lang]); } else { + if(lang < 0 || lang > 12) { + PRINTFUNC(DLOG_WARN, "vconf lang orig(%d) to be 0", lang); + lang = 0; + } PRINTFUNC(DLOG_DEBUG, "current language value for stt (%s).", disp_lang_array[lang]); } @@ -2104,6 +2108,7 @@ static Evas_Object *create_fullview(Evas_Object *parent, VoiceData *r_voicedata) free(app_id); } } + elm_layout_signal_callback_add(panel, "cue,clicked", "elm", _panel_cue_clicked_cb, (void *) voicedata); evas_object_show(panel); -- 2.7.4