Fix svace issues (WGID 212871, 212872) 08/130108/2 accepted/tizen/unified/20170522.182800 submit/tizen/20170522.013721 tizen_4.0.m1_release
authorchleun.moon <chleun.moon@samsung.com>
Fri, 19 May 2017 06:50:17 +0000 (15:50 +0900)
committerchleun.moon <chleun.moon@samsung.com>
Fri, 19 May 2017 06:51:03 +0000 (15:51 +0900)
Signed-off-by: cheoleun <chleun.moon@samsung.com>
Change-Id: Ia30e2d53601defd975871cac51118685da428d0c

packaging/download-provider.spec
provider/download-provider-client.c

index ffac3f4..b8e8b71 100755 (executable)
@@ -1,7 +1,7 @@
 %define _ux_define tizen2.3
 Name:       download-provider
 Summary:    Download the contents in background
-Version:    2.1.77
+Version:    2.1.78
 Release:    0
 Group:      Development/Libraries
 License:    Apache-2.0
index 4a6c1cd..24b055c 100755 (executable)
@@ -350,10 +350,6 @@ void dp_client_clear_requests(void *slotp)
                return ;
        }
        dp_client_fmt *client = &slot->client;
-       if (client == NULL) {
-               TRACE_ERROR("check client memory");
-               return ;
-       }
 
        int now_time = (int)time(NULL);
        int i = 0;
@@ -1855,11 +1851,6 @@ static int __dp_client_requests(dp_client_slots_fmt *slot, dp_ipc_fmt *ipc_info)
                }
        }
 
-       // Check size for prevent
-       if (ipc_info->size > 4294967295U) {
-               TRACE_ERROR("Check socket. Invalid size value. sock:%d", client->channel);
-               return DP_ERROR_IO_ERROR;
-       }
        if (errorcode != DP_ERROR_NONE) { // prechecking
                TRACE_ERROR("precheck errorcode:%s sock:%d id:%d section:%s property:%s",
                        dp_print_errorcode(errorcode),