FILE *fp;
int c;
+ if (argc < 2)
+ exit(EXIT_FAILURE);
+
fp = fopen(argv[1], "r");
if (fp == NULL)
exit(EXIT_FAILURE);
FILE *fp;
int c;
+ if (argc < 2)
+ exit(EXIT_FAILURE);
+
fp = fopen(argv[1], "r");
if (fp == NULL)
exit(EXIT_FAILURE);
int height = 0;
int mimetype = 0;
uint64_t size = 0;
+ unsigned int size_decode = 0;
void *buffer = NULL;
void *buffer_temp = NULL;
int ret;
}
ret = image_util_decode_jpeg(info->src, colorspace, (unsigned char **)&buffer,
- &width, &height, (unsigned int *)&size);
+ &width, &height, &size_decode);
if (IMAGE_UTIL_ERROR_NONE != ret) {
info->ret = CONTACTS_ERROR_SYSTEM;
return true;
}
+ size = (uint64_t)size_decode;
if (limit_size_of_photo < width || limit_size_of_photo < height) { /* need resize */
int resized_width;
Name: contacts-service
Summary: Contacts Service
-Version: 0.13.73
+Version: 0.13.74
Release: 0
Group: Social & Content/Service
License: Apache-2.0
int dest_fd = 0;
int mimetype = 0;
uint64_t size = 0;
+ unsigned int size_decode = 0;
void *buffer = NULL;
void *buffer_temp = NULL;
int ret;
}
ret = image_util_decode_jpeg(info->src, colorspace, (unsigned char **)&buffer,
- &width, &height, (unsigned int *)&size);
+ &width, &height, &size_decode);
if (IMAGE_UTIL_ERROR_NONE != ret) {
info->ret = CONTACTS_ERROR_SYSTEM;
return true;
}
+ size = (uint64_t)size_decode;
rotation = _ctsvc_image_get_rotation_info(info->src);
if (IMAGE_UTIL_ROTATION_NONE != rotation) { /* need rotate */