Fix crash when too leng message is come and number of tokens are bigger than max 32/95532/1 accepted/tizen/common/20161103.160217 accepted/tizen/ivi/20161103.232353 accepted/tizen/mobile/20161103.232258 accepted/tizen/tv/20161103.232316 accepted/tizen/wearable/20161103.232334 submit/tizen/20161103.125631
authorJeongmo Yang <jm80.yang@samsung.com>
Thu, 3 Nov 2016 12:45:33 +0000 (21:45 +0900)
committerJeongmo Yang <jm80.yang@samsung.com>
Thu, 3 Nov 2016 12:45:33 +0000 (21:45 +0900)
[Version] 0.2.43
[Profile] Common
[Issue Type] Fix crash
[Dependency module] N/A
[Test] [M(E) - Boot=(OK), sdb=(OK), Home=(OK), Touch=(OK), Version=tizen-mobile_20161101.3]

Change-Id: If07f54c2fd3a56be40a0557adc0754f38bc9b93a
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
packaging/capi-media-recorder.spec
src/recorder.c

index c29a1c9..135d9c6 100644 (file)
@@ -1,6 +1,6 @@
 Name:       capi-media-recorder
 Summary:    A Recorder API
-Version:    0.2.42
+Version:    0.2.43
 Release:    0
 Group:      Multimedia/API
 License:    Apache-2.0
index 877bb78..e4b0ffa 100644 (file)
@@ -841,7 +841,7 @@ static void *_recorder_msg_recv_func(gpointer data)
                                prev_pos = str_pos + 1;
 
                                if (num_token >= RECORDER_PARSED_STRING_NUM_MAX) {
-                                       LOGE("There's too many tokens. Remained msg : %s", recv_msg[++str_pos]);
+                                       LOGE("There's too many tokens. Remained msg length %d", ret - str_pos);
                                        break;
                                }
                        }