projects
/
platform
/
core
/
uifw
/
voice-control.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ff65c8e
)
Fix invalid access when error message is NULL
44/130044/1
author
Kwangyoun Kim
<ky85.kim@samsung.com>
Fri, 19 May 2017 02:19:28 +0000
(11:19 +0900)
committer
Kwangyoun Kim
<ky85.kim@samsung.com>
Fri, 19 May 2017 02:19:55 +0000
(11:19 +0900)
Change-Id: If46596e96d2f24660e04b1fb4896c36f29fdc244
server/vcd_server.c
patch
|
blob
|
history
diff --git
a/server/vcd_server.c
b/server/vcd_server.c
index
bed1370
..
9242c83
100644
(file)
--- a/
server/vcd_server.c
+++ b/
server/vcd_server.c
@@
-900,7
+900,11
@@
static void __vcd_server_error_cb(vcp_error_e error, const char* msg, void *user
ecore_main_loop_thread_safe_call_async(__cancel_by_error, NULL);
char* error_msg = NULL;
- error_msg = strdup(msg);
+ if (NULL != msg) {
+ error_msg = strdup(msg);
+ } else {
+ error_msg = strdup("no message");
+ }
if (0 != vcdc_send_error_signal_to_manager(vcd_client_manager_get_pid(), error, error_msg)) {
SLOG(LOG_ERROR, TAG_VCD, "[Server ERROR] Fail to send error signal");