From 418c98f5cb348873b9c2e5b46ec31b781bdad67c Mon Sep 17 00:00:00 2001 From: SeungKeun Lee Date: Fri, 10 Feb 2012 15:18:35 +0900 Subject: [PATCH] boundary check update --- debian/changelog | 8 ++++++++ src/image_util.c | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) mode change 100644 => 100755 debian/changelog diff --git a/debian/changelog b/debian/changelog old mode 100644 new mode 100755 index ab88ca1..9a5bdae --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,11 @@ +capi-media-image-util (0.1.0-7) unstable; urgency=low + + * boundary check update + * Git: slp-source.sec.samsung.net:slp/api/image-util + * Tag: capi-media-image-util_0.1.0-7 + + -- Seungkeun Lee Tue, 31 Jan 2012 14:04:32 +0900 + capi-media-image-util (0.1.0-6) unstable; urgency=low * update image_util_decode_jpeg_from_memory impl. diff --git a/src/image_util.c b/src/image_util.c index 2f804f7..a375271 100755 --- a/src/image_util.c +++ b/src/image_util.c @@ -143,7 +143,7 @@ int image_util_transform( unsigned char * dest , int *dest_width , int *dest_hei return _convert_image_util_error_code(__func__, IMAGE_UTIL_ERROR_INVALID_PARAMETER); if( colorspace < 0 || colorspace >= sizeof(_convert_colorspace_tbl)/sizeof(int)) return _convert_image_util_error_code(__func__, IMAGE_UTIL_ERROR_INVALID_PARAMETER); - if( dest_rotation < 0 || dest_rotation >= IMAGE_UTIL_ROTATION_FLIP_VERT ) + if( dest_rotation < 0 || dest_rotation > IMAGE_UTIL_ROTATION_FLIP_VERT ) return _convert_image_util_error_code(__func__, IMAGE_UTIL_ERROR_INVALID_PARAMETER); if( dest_width == NULL || dest_height == NULL) return _convert_image_util_error_code(__func__, IMAGE_UTIL_ERROR_INVALID_PARAMETER); -- 2.34.1