Checking if emipc_add_param_to_param_list() failed 15/281715/1 accepted/tizen_7.0_unified_hotfix tizen_7.0_hotfix accepted/tizen/7.0/unified/20221110.055906 accepted/tizen/7.0/unified/hotfix/20221116.105332 accepted/tizen/unified/20220927.132328 tizen_7.0_m2_release
authorKrishna Kant Jaju <krishna.jaju@samsung.com>
Wed, 21 Sep 2022 04:35:45 +0000 (10:05 +0530)
committerKrishna Kant Jaju <krishna.jaju@samsung.com>
Wed, 21 Sep 2022 04:35:45 +0000 (10:05 +0530)
Change-Id: I5d9e90e9901a2e037b3055de3b8fffd4597bf8da
Signed-off-by: Krishna Kant Jaju <krishna.jaju@samsung.com>
email-ipc/email-ipc-api/email-ipc-param-list.c

index f1f0a11..fe8df67 100755 (executable)
@@ -106,8 +106,10 @@ EXPORT_API bool emipc_parse_stream_of_param_list(void *stream, emipc_param_list
                cur += sizeof(int);
                remain_len -= sizeof(int);
 
-               if (remain_len > 0 && len > 0 && remain_len >= len)
-                       emipc_add_param_to_param_list(param_list, (void *)cur, len);
+               if (remain_len > 0 && len > 0 && remain_len >= len) {
+                       if (emipc_add_param_to_param_list(param_list, (void *)cur, len) != true)
+                               EM_DEBUG_LOG("emipc_add_param_to_param_list() failed");
+               }
                else {
                        EM_DEBUG_EXCEPTION("data_len[%d] is not in the boundary of remain stream_len", len);
                        return false;