[0.2.138] Fix Svace issue (DEREF_OF_NULL.RET.ALLOC) 42/305142/1 accepted/tizen_unified_toolchain accepted/tizen_unified_x accepted/tizen/unified/20240131.175356 accepted/tizen/unified/toolchain/20240311.065501 accepted/tizen/unified/x/20240205.064041
authorGilbok Lee <gilbok.lee@samsung.com>
Mon, 29 Jan 2024 07:50:24 +0000 (16:50 +0900)
committerGilbok Lee <gilbok.lee@samsung.com>
Mon, 29 Jan 2024 07:50:24 +0000 (16:50 +0900)
Change-Id: Ibca51f73ee95586c1fe6d8107c4c903383e08312

muse/src/muse_player.c
packaging/mmsvc-player.spec

index d6249d1..f426de5 100644 (file)
@@ -443,7 +443,10 @@ static int __mplayer_check_supportable(muse_module_h module, char *path)
                                tzplatform_set_user(cred.uid);
                                internal_path = g_strdup(MEDIA_PATH_USER);
                                tzplatform_reset_user();
-
+                               if (!internal_path) {
+                                       LOGE("media path user is NULL");
+                                       return PLAYER_ERROR_INVALID_OPERATION;
+                               }
                                // LOGD("internal storage path %s", internal_path);
 
                                if (strncmp(file_path, internal_path, strlen(internal_path)) == 0) { /* internal media storage */
index 6865cc1..371a88d 100644 (file)
@@ -1,6 +1,6 @@
 Name:       mmsvc-player
 Summary:    A Media Player module for muse server
-Version:    0.2.137
+Version:    0.2.138
 Release:    0
 Group:      Multimedia/Libraries
 License:    Apache-2.0