Prevent [CID 370482] fixed
authorSung-jae Park <nicesj.park@samsung.com>
Mon, 20 Apr 2015 09:59:26 +0000 (18:59 +0900)
committerSung-jae Park <nicesj.park@samsung.com>
Mon, 20 Apr 2015 09:59:26 +0000 (18:59 +0900)
[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

index ee77be2..5dbaace 100755 (executable)
@@ -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);