From bc294b11cfbfa4af38dbf252db67475fb2d065fe Mon Sep 17 00:00:00 2001 From: Wonnam Jang Date: Mon, 11 Jun 2018 19:03:46 +0900 Subject: [PATCH] Fix stack buffer overflow issue Change-Id: Ia5fa5cdc098878e5668cfde542732283a38f5bd9 Signed-off-by: Wonnam Jang --- src/voice_control_webview.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; } -- 2.7.4