Fix coverity issues 16/272916/2 submit/tizen/20220328.024716
authorJaechul Lee <jcsing.lee@samsung.com>
Mon, 28 Mar 2022 02:33:13 +0000 (11:33 +0900)
committerJaechul Lee <jcsing.lee@samsung.com>
Mon, 28 Mar 2022 02:38:08 +0000 (11:38 +0900)
The issue of coverity(1286103) was fixed

[Version] 15.0.6
[Issue Type] Coverity

Change-Id: I3e4b5ca2e925642cc4574136b07a3c736b9a2e69
Signed-off-by: Jaechul Lee <jcsing.lee@samsung.com>
packaging/pulseaudio-modules-tizen.spec
src/echo-cancel/module-tizenaudio-echo-cancel.c

index 11f3e2f..7972173 100644 (file)
@@ -2,7 +2,7 @@
 
 Name:             pulseaudio-modules-tizen
 Summary:          Pulseaudio modules for Tizen
-Version:          15.0.5
+Version:          15.0.6
 Release:          0
 Group:            Multimedia/Audio
 License:          LGPL-2.1+
index a80eb9f..51216b2 100644 (file)
@@ -869,7 +869,11 @@ int pa__init(pa_module *m) {
         pa_log_error("Failed to parse module arguments.");
         return -1;
     }
-    pa_modargs_get_value_u32(ma, "blocksize", &blocksize);
+
+    if (pa_modargs_get_value_u32(ma, "blocksize", &blocksize) < 0) {
+        pa_log_info("Failed to get blocksize");
+        goto fail;
+    }
 
     m->userdata = u = pa_xnew0(struct userdata, 1);
     u->core = m->core;