Name: capi-media-image-util
Summary: A Image Utility library in Tizen Native API
-Version: 0.4.2
+Version: 0.4.3
Release: 0
Group: Multimedia/API
License: Apache-2.0
image_util_retvm_if(!_handle, IMAGE_UTIL_ERROR_INVALID_PARAMETER, "Invalid Handle");
image_util_retvm_if((width == 0 || height == 0), IMAGE_UTIL_ERROR_INVALID_PARAMETER, "Invalid resolution w : [%lu] h : [%lu]", width, height);
+ image_util_retvm_if((width >= UINT_MAX || height >= UINT_MAX), IMAGE_UTIL_ERROR_INVALID_PARAMETER, "Invalid resolution w : [%lu] h : [%lu]", width, height);
/* multi-src for a-gif */
if (_handle->image_type == IMAGE_UTIL_GIF) {
goto ERROR;
}
- plane_size = stride_width * stride_height;
+ plane_size = (size_t)(stride_width) * stride_height;
ret = media_packet_get_video_plane_data_ptr(new_packet, i, &plane_ptr);
if (ret != MEDIA_PACKET_ERROR_NONE) {
goto ERROR;
}
- plane_size = stride_width * stride_height;
+ plane_size = (size_t)(stride_width) * stride_height;
ret = media_packet_get_video_plane_data_ptr(packet, i, &plane_ptr);
if (ret != MEDIA_PACKET_ERROR_NONE) {