Add src_size parameter for decoding gif 30/191430/1
authorjiyong.min <jiyong.min@samsung.com>
Wed, 17 Oct 2018 05:50:01 +0000 (14:50 +0900)
committerjiyong.min <jiyong.min@samsung.com>
Wed, 17 Oct 2018 05:51:26 +0000 (14:51 +0900)
Change-Id: I937477cb2513458730feea7d4d271aabd16e0b29

src/image_util_decode.c

index 10208b9..33a9bcd 100755 (executable)
@@ -254,7 +254,7 @@ static int _image_util_decode_internal(decode_s * _handle, unsigned long *res_wi
                        if (_handle->path)
                                err = mm_util_decode_from_gif_file(_handle->path, &image_info);
                        else
-                               err = mm_util_decode_from_gif_memory(_handle->src_buffer[0], &image_info);
+                               err = mm_util_decode_from_gif_memory(_handle->src_buffer[0], (size_t)_handle->src_size, &image_info);
                }
                break;
        case IMAGE_UTIL_BMP: