Fix DEREF_OF_NULL.RET.PROC.STAT 99/264599/4 submit/tizen/20210927.080426 submit/tizen/20210928.015557 submit/tizen/20210929.043812 submit/tizen/20211005.003737
authorJaechul Lee <jcsing.lee@samsung.com>
Mon, 27 Sep 2021 05:58:18 +0000 (14:58 +0900)
committerJaechul Lee <jcsing.lee@samsung.com>
Mon, 27 Sep 2021 07:31:02 +0000 (16:31 +0900)
[Version] 13.0.77
[Issue Type] VD svace DF210918-00186

Change-Id: I21b72e6fd96ab07521cb807bc26c44e148c00162
Signed-off-by: Jaechul Lee <jcsing.lee@samsung.com>
packaging/pulseaudio-modules-tizen.spec
src/device-manager.c

index 49718ab..0130020 100644 (file)
@@ -1,6 +1,6 @@
 Name:             pulseaudio-modules-tizen
 Summary:          Pulseaudio modules for Tizen
-Version:          13.0.76
+Version:          13.0.77
 Release:          0
 Group:            Multimedia/Audio
 License:          LGPL-2.1+
index 16e5641..a57fc46 100644 (file)
@@ -609,6 +609,10 @@ static char* device_class_get_module_name(dm_device_class_t device_class, const
         const char *state = NULL, *prefix = "tizen";
 
         class = pa_split(device_string, ":", &state);
+        if (!class) {
+            pa_log_error("Failed to parse device_string %s", device_string);
+            return NULL;
+        }
 
         if (!pa_safe_streq(class, prefix)) {
             if (!pa_atoi(class + strlen(prefix), &v))