false positive content added. 87/89387/2 accepted/tizen/common/20160923.161331 accepted/tizen/mobile/20160925.234528 accepted/tizen/tv/20160925.234500 submit/tizen_common/20160923.090942 submit/tizen_mobile/20160923.090934 submit/tizen_tv/20160923.090926
authorLim DoHyung <delight.lim@samsung.com>
Fri, 23 Sep 2016 08:54:12 +0000 (17:54 +0900)
committerLim DoHyung <delight.lim@samsung.com>
Fri, 23 Sep 2016 08:58:16 +0000 (17:58 +0900)
Change-Id: I111244ba0aa3c20876551ea54802fd80f318df13
Signed-off-by: Lim DoHyung <delight.lim@samsung.com>
common-adaptor/common-adaptor.c
packaging/browser-provider.spec
provider/browser-provider-requests.c

index f7962e9e1727f99bed9fbc5002a09fe0066dcff1..c25cf05b498c5ab1f994b1b58f5c215737ce6803 100755 (executable)
@@ -411,7 +411,7 @@ int bp_common_adaptor_get_blob(const int sock, bp_command_fmt *cmd,
                BP_PRINT_ERROR(cmd->id, *errorcode);
                return -1;
        }
-       if (blob_length < 256 && blob_length > 0) {
+       if (blob_length > 0) {
                blob_data =
                        (unsigned char *)calloc(blob_length, sizeof(unsigned char));
                if (blob_data == NULL) {
@@ -504,7 +504,7 @@ int bp_common_adaptor_get_info_blob(int sock, unsigned char **value,
 {
        int length = 0;
        if ((bp_ipc_read_custom_type(sock, &length,
-                       sizeof(int)) == 0) && (length > 0 && length < 256)) {
+                       sizeof(int)) == 0) && (length > 0)) {
 
                int trans_way = 0; // 0:socket 1:shm
                if (bp_ipc_read_custom_type(sock, &trans_way,
@@ -562,7 +562,7 @@ int bp_common_adaptor_get_blob_shm(const int sock,
                return -1;
        }
 
-       if (blob_length < 256 && blob_length > 0) {
+       if (blob_length > 0) {
 
                // read here what IPC should be used below from provider.
                int trans_way = 0; // 0:socket 1:shm
index ab3bd4bef2b66780d0ce7284243d3d4737b0076a..59682a22bf9195d696fd29010c0bc42c2a01e0ab 100755 (executable)
@@ -1,7 +1,7 @@
 
 Name:       browser-provider
 Summary:    sync in background.
-Version:    1.8.2
+Version:    1.8.3
 Release:    1
 Group:      Development/Libraries
 License:    Apache-2.0
index a9feb672309519456bade28d0ece456e8c76cb21..7051203f9e8088c608b10a692bb0fcb3c53a1c4c 100755 (executable)
@@ -584,7 +584,7 @@ bp_error_defs bp_common_set_blob(sqlite3 *handle,
                bp_ipc_send_errorcode(sock, BP_ERROR_IO_ERROR);
                return BP_ERROR_IO_ERROR;
        }
-       if (blob_length < 256 && blob_length > 0) {
+       if (blob_length > 0) {
                blob_data =
                        (unsigned char *)calloc(blob_length, sizeof(unsigned char));
                if (blob_data == NULL) {
@@ -648,7 +648,7 @@ bp_error_defs bp_common_set_blob_with_size(sqlite3 *handle,
                bp_ipc_send_errorcode(sock, BP_ERROR_IO_ERROR);
                return BP_ERROR_IO_ERROR;
        }
-       if (blob_length < 256 && blob_length > 0) {
+       if (blob_length > 0) {
                if (bp_ipc_read_custom_type(sock, &width, sizeof(int)) < 0) {
                        TRACE_ERROR("[ERROR][%d] SET_BLOB [IO_ERROR]", id);
                        bp_ipc_send_errorcode(sock, BP_ERROR_IO_ERROR);
@@ -874,7 +874,7 @@ bp_error_defs bp_common_set_blob_shm(sqlite3 *handle,
                bp_ipc_send_errorcode(sock, BP_ERROR_IO_ERROR);
                return BP_ERROR_IO_ERROR;
        }
-       if (blob_length < 256 && blob_length > 0) {
+       if (blob_length > 0) {
 
                unsigned char *blob_buffer = NULL;
                unsigned char *blob_data = NULL;