From: Lim DoHyung Date: Fri, 23 Sep 2016 08:54:12 +0000 (+0900) Subject: false positive content added. X-Git-Tag: submit/tizen_tv/20160923.090926^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0af80a2f4f2d3ad643c37efa78c6883d82cc412c;p=platform%2Fframework%2Fweb%2Fbrowser-provider.git false positive content added. Change-Id: I111244ba0aa3c20876551ea54802fd80f318df13 Signed-off-by: Lim DoHyung --- diff --git a/common-adaptor/common-adaptor.c b/common-adaptor/common-adaptor.c index f7962e9..c25cf05 100755 --- a/common-adaptor/common-adaptor.c +++ b/common-adaptor/common-adaptor.c @@ -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 diff --git a/packaging/browser-provider.spec b/packaging/browser-provider.spec index ab3bd4b..59682a2 100755 --- a/packaging/browser-provider.spec +++ b/packaging/browser-provider.spec @@ -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 diff --git a/provider/browser-provider-requests.c b/provider/browser-provider-requests.c index a9feb67..7051203 100755 --- a/provider/browser-provider-requests.c +++ b/provider/browser-provider-requests.c @@ -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;