summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhj kim <backto.kim@samsung.com>2017-10-30 14:01:55 +0900
committerhj kim <backto.kim@samsung.com>2017-10-30 14:02:17 +0900
commit70eb031a36555a9343b5a17d05f476ae3ebac6c3 (patch)
treeddd85fd0b3fca9cbd0eb4a2fc9e91476e4eda0b1
parenta0df0957f0119bf2484aa5af9e1045726866239e (diff)
parent6c8089d12ec7b310732bfe283c539cfeb4dec28a (diff)
downloadlibmedia-thumbnail-70eb031a36555a9343b5a17d05f476ae3ebac6c3.tar.gz
libmedia-thumbnail-70eb031a36555a9343b5a17d05f476ae3ebac6c3.tar.bz2
libmedia-thumbnail-70eb031a36555a9343b5a17d05f476ae3ebac6c3.zip
Change-Id: Ie0d3f5ea1798750e9e46e79db29e1991b48ba77e
-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);