Fix SVACE defects 58/269458/4
authorSeungbae Shin <seungbae.shin@samsung.com>
Fri, 14 Jan 2022 11:33:21 +0000 (20:33 +0900)
committerSeungbae Shin <seungbae.shin@samsung.com>
Mon, 24 Jan 2022 03:46:58 +0000 (03:46 +0000)
WGID 479718: MEMORY_LEAK.EX
WGID 479717: DEREF_OF_NULL

+ minor meson option typo fix

[Version] 15.0-1
[Issue Type] Vulnerability

Change-Id: I10ef871108ad1eae30f756e909c4e96f511a8a3c

packaging/pulseaudio.spec
src/modules/alsa/alsa-mixer.c
src/utils/pactl.c

index 5efb0d7..686d94e 100644 (file)
@@ -4,7 +4,7 @@
 Name:             pulseaudio
 Summary:          Improved Linux sound server
 Version:          15.0
-Release:          0
+Release:          1
 Group:            Multimedia/Audio
 License:          LGPL-2.1
 URL:              http://pulseaudio.org
@@ -188,7 +188,7 @@ export CFLAGS+=" -DTIZEN_TV_PROD "
 export LD_AS_NEEDED=0
 
 mkdir -p %{_vpath_builddir}
-%meson --auto-feature=auto \
+%meson --auto-features=auto \
     -Dhal-datadir=%{_hal_datadir} \
     -Dhal-sysconfdir=%{_hal_sysconfdir} \
     -Dtests=false \
index 7b755ce..fced0fe 100644 (file)
@@ -2552,6 +2552,9 @@ static int element_parse_override_map(pa_config_parser_state *state) {
 
         if (i >= (unsigned)channel_count) {
             pa_log("[%s:%u] Invalid override map size (>%d) in '%s'", state->filename, state->lineno, channel_count, state->section);
+#ifdef __TIZEN__
+            pa_xfree(n);
+#endif
             return -1;
         }
         channel_position = alsa_channel_positions[i];
index 6ad6135..b6a3995 100644 (file)
@@ -961,7 +961,9 @@ static void list_handlers_callback(pa_context *c, int success, char *response, v
 
     if (!o) {
         pa_log(_("list-handlers message response could not be parsed correctly"));
+#ifndef __TIZEN__
         pa_json_object_free(o);
+#endif
         quit(1);
         return;
     }