summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhj kim <backto.kim@samsung.com>2017-10-30 02:27:12 (GMT)
committerhj kim <backto.kim@samsung.com>2017-10-30 02:27:39 (GMT)
commit6c8089d12ec7b310732bfe283c539cfeb4dec28a (patch)
treeddd85fd0b3fca9cbd0eb4a2fc9e91476e4eda0b1
parent984b1c8a841ba1abccc4012efcb2f63fd8762588 (diff)
downloadlibmedia-thumbnail-6c8089d12ec7b310732bfe283c539cfeb4dec28a.zip
libmedia-thumbnail-6c8089d12ec7b310732bfe283c539cfeb4dec28a.tar.gz
libmedia-thumbnail-6c8089d12ec7b310732bfe283c539cfeb4dec28a.tar.bz2
Change-Id: Ia941a47ea8fe745880abd20db645ee83b1d8262c
-rw-r--r--packaging/libmedia-thumbnail.spec2
-rwxr-xr-xsrc/media-thumb-internal.c5
2 files changed, 6 insertions, 1 deletions
diff --git a/packaging/libmedia-thumbnail.spec b/packaging/libmedia-thumbnail.spec
index cab076b..4515507 100644
--- a/packaging/libmedia-thumbnail.spec
+++ b/packaging/libmedia-thumbnail.spec
@@ -1,6 +1,6 @@
Name: libmedia-thumbnail
Summary: Media thumbnail service library for multimedia applications
-Version: 0.2.16
+Version: 0.2.17
Release: 0
Group: Multimedia/Libraries
License: Apache-2.0 and PD
diff --git a/src/media-thumb-internal.c b/src/media-thumb-internal.c
index 825fd30..6ae8396 100755
--- a/src/media-thumb-internal.c
+++ b/src/media-thumb-internal.c
@@ -481,6 +481,11 @@ static int __media_thumb_decode_jpeg(unsigned char *src, unsigned long long size
int err = IMAGE_UTIL_ERROR_NONE;
image_util_decode_h decoder = NULL;
+ if (!dst || !width || !height || !dst_size) {
+ thumb_err("Invalide parameter");
+ return MS_MEDIA_ERR_INVALID_PARAMETER;
+ }
+
err = image_util_decode_create(&decoder);
if (err != IMAGE_UTIL_ERROR_NONE) {
thumb_err("image_util_decode_create failed! (%d)", err);