From 267b9ae3ba444e675f5d264b1854373bbd37bd3b Mon Sep 17 00:00:00 2001 From: Seungbae Shin Date: Fri, 14 Jan 2022 20:33:21 +0900 Subject: [PATCH] Fix SVACE defects 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 | 4 ++-- src/modules/alsa/alsa-mixer.c | 3 +++ src/utils/pactl.c | 2 ++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/packaging/pulseaudio.spec b/packaging/pulseaudio.spec index 5efb0d7..686d94e 100644 --- a/packaging/pulseaudio.spec +++ b/packaging/pulseaudio.spec @@ -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 \ diff --git a/src/modules/alsa/alsa-mixer.c b/src/modules/alsa/alsa-mixer.c index 7b755ce..fced0fe 100644 --- a/src/modules/alsa/alsa-mixer.c +++ b/src/modules/alsa/alsa-mixer.c @@ -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]; diff --git a/src/utils/pactl.c b/src/utils/pactl.c index 6ad6135..b6a3995 100644 --- a/src/utils/pactl.c +++ b/src/utils/pactl.c @@ -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; } -- 2.7.4