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:
9b48782
)
Fix buffer overflow issue
80/218380/1
author
wn.jang
<wn.jang@samsung.com>
Thu, 21 Nov 2019 23:17:10 +0000
(08:17 +0900)
committer
wn.jang
<wn.jang@samsung.com>
Thu, 21 Nov 2019 23:17:10 +0000
(08:17 +0900)
Change-Id: If76e9ff42c4aaa297bf36f31ba3293816c132eb6
server/vcd_recorder.c
patch
|
blob
|
history
diff --git
a/server/vcd_recorder.c
b/server/vcd_recorder.c
index 303590e152d17a2a55069eb0a721c060450b1aa2..491b530e4fc2686ff12b474c8aaef17c66756a5c 100644
(file)
--- a/
server/vcd_recorder.c
+++ b/
server/vcd_recorder.c
@@
-773,7
+773,7
@@
Eina_Bool __read_test_func(void *data)
if (NULL != g_audio_cb && buffer_size != 0)
g_audio_cb(buffer, buffer_size);
- float vol_db = get_volume_decibel(buffer,
buffer_size
);
+ float vol_db = get_volume_decibel(buffer,
BUFFER_LENGTH
);
if (0 != vcdc_send_set_volume(vcd_client_manager_get_pid(), vol_db))
SLOG(LOG_ERROR, TAG_VCD, "[Recorder test] Fail to send recording volume(%f)", vol_db);