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) {
{
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,
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
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) {
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);
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;