From: Wonnam Jang Date: Mon, 11 Jun 2018 10:03:46 +0000 (+0900) Subject: Fix stack buffer overflow issue X-Git-Tag: accepted/tizen/5.0/unified/20181102.023628^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Ftizen_6.0_hotfix;p=platform%2Fcore%2Fuifw%2Fvc-webview.git Fix stack buffer overflow issue Change-Id: Ia5fa5cdc098878e5668cfde542732283a38f5bd9 Signed-off-by: Wonnam Jang --- diff --git a/src/voice_control_webview.cpp b/src/voice_control_webview.cpp index 89df7a8..ee37842 100755 --- a/src/voice_control_webview.cpp +++ b/src/voice_control_webview.cpp @@ -347,13 +347,15 @@ VCWebView::~VCWebView() int VCWebView::vc_is_supported_web_vt(bool *vt_automode) { int ret = -1; - ret = vconf_get_bool(VC_VOICE_TOUCH_AUTOMODE, (int*)vt_automode); + int value = 0; + ret = vconf_get_bool(VC_VOICE_TOUCH_AUTOMODE, &value); if (0 != ret) { LOGE("[ERROR] Fail to get vconfkey"); return VC_ERROR_OPERATION_FAILED; } + *vt_automode = value ? true : false; return ret; }