preprocess: Fix a coverity issue 73/297273/2 accepted/tizen/unified/20230821.103311
authorJaechul Lee <jcsing.lee@samsung.com>
Wed, 16 Aug 2023 06:34:03 +0000 (15:34 +0900)
committerJaechul Lee <jcsing.lee@samsung.com>
Thu, 17 Aug 2023 04:45:16 +0000 (13:45 +0900)
[Version] 15.0.51
[Issue Type] Coverity (CHECK_RETURN)

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

index e8a0afed461d644cb14e48679c77dcbdc2b9918f..0a054ba517370be82078167720b85e7706c1a34b 100644 (file)
@@ -2,7 +2,7 @@
 
 Name:             pulseaudio-modules-tizen
 Summary:          Pulseaudio modules for Tizen
-Version:          15.0.50
+Version:          15.0.51
 Release:          0
 Group:            Multimedia/Audio
 License:          LGPL-2.1+
index 6f3855e91614d382fec74e2f6edd88bf30b9c351..eb7d2a4668379ebdb765086349cc48ba8840b1f7 100644 (file)
@@ -186,8 +186,9 @@ int pa_processor_holder_pump(pa_processor_holder *holder) {
     while (length > 0) {
         pa_memchunk tchunk;
 
-        pa_memblockq_peek(pull_queue, &tchunk);
-        pa_memblockq_push(holder->output, &tchunk);
+        pa_assert_se(pa_memblockq_peek(pull_queue, &tchunk) >= 0);
+        pa_assert_se(pa_memblockq_push(holder->output, &tchunk) >= 0);
+
         pa_memblock_unref(tchunk.memblock);
         pa_memblockq_drop(pull_queue, tchunk.length);
         length = pa_memblockq_get_length(pull_queue);