From f2742bd141d81041406dffe819b3ddf6d47a9a43 Mon Sep 17 00:00:00 2001 From: Sung-jae Park Date: Mon, 20 Apr 2015 18:59:26 +0900 Subject: [PATCH] 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 --- widget_provider/src/widget_provider.c | 4 ++++ 1 file changed, 4 insertions(+) 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); -- 2.7.4