From: Sung-jae Park Date: Mon, 20 Apr 2015 09:59:26 +0000 (+0900) Subject: Prevent [CID 370482] fixed X-Git-Tag: submit/tizen_mobile/20150511.123737~2^2~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f2742bd141d81041406dffe819b3ddf6d47a9a43;p=apps%2Fnative%2Fwidget%2Fwidget-provider.git Prevent [CID 370482] fixed [model] Redwood,Kiran,B3(Wearable) [binary_type] AP [customer] Docomo/Orange/ATT/Open [issue#] N/A [problem] [cause] [solution] [team] HomeTF [request] [horizontal_expansion] Change-Id: Ibc722a16f1ab520006fce69684f9e4411148784d --- diff --git a/widget_provider/src/widget_provider.c b/widget_provider/src/widget_provider.c index ee77be2..5dbaace 100755 --- a/widget_provider/src/widget_provider.c +++ b/widget_provider/src/widget_provider.c @@ -1891,6 +1891,10 @@ __attribute__((always_inline)) static inline int send_updated(int fd, const char if (for_gbar && !descfile) { descfile = widget_util_uri_to_path(id); /* In case of the NULL descfilename, use the ID */ + if (!descfile) { + ErrPrint("Invalid descfile: %s\n", id); + return WIDGET_ERROR_INVALID_PARAMETER; + } } info = widget_provider_buffer_find_buffer(for_gbar ? WIDGET_TYPE_GBAR : WIDGET_TYPE_WIDGET, pkgname, id);