From: InHong Han Date: Wed, 1 Apr 2020 10:29:20 +0000 (+0900) Subject: Modified to check the string size is zero X-Git-Tag: accepted/tizen/5.5/unified/20200402.000026~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ff3e2f22ff3b4821bc660f1db99f2e9889e5046e;p=platform%2Fcore%2Fuifw%2Fcapi-ui-sticker.git Modified to check the string size is zero Change-Id: I2c49792905831954b08c307463cbfccebe88124e --- diff --git a/client/sticker_data.c b/client/sticker_data.c index 555a23a..2a64633 100644 --- a/client/sticker_data.c +++ b/client/sticker_data.c @@ -235,7 +235,7 @@ EXPORT_API int sticker_data_set_uri(sticker_data_h data_handle, sticker_data_uri CHECK_STICKER_FEATURE(); char *file_path = NULL; - if (!data_handle || !type || !uri) + if (!data_handle || !type || !uri || uri[0] == '\0') return STICKER_ERROR_INVALID_PARAMETER; if (type == STICKER_DATA_URI_LOCAL_PATH) { @@ -369,7 +369,7 @@ EXPORT_API int sticker_data_set_thumbnail(sticker_data_h data_handle, const char CHECK_STICKER_FEATURE(); char *file_path = NULL; - if (!data_handle || !thumbnail) + if (!data_handle || !thumbnail || thumbnail[0] == '\0') return STICKER_ERROR_INVALID_PARAMETER; if (access(thumbnail, F_OK) != 0) {