diff options
author | Sam James <sam@gentoo.org> | 2023-05-05 05:00:28 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2023-05-05 05:11:12 +0100 |
commit | 74ee5178596f42af46a2aa8372e6f8ead69428f3 (patch) | |
tree | 70da4e1bc01d6b186740c01da0dbfdc2e619bc41 /media-sound/alsa-tools/files | |
parent | sys-apps/systemd: drop 252.7, 252.10 (diff) | |
download | gentoo-74ee5178596f42af46a2aa8372e6f8ead69428f3.tar.gz gentoo-74ee5178596f42af46a2aa8372e6f8ead69428f3.tar.bz2 gentoo-74ee5178596f42af46a2aa8372e6f8ead69428f3.zip |
media-sound/alsa-tools: EAPI 8, fix hdspmixer crash
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'media-sound/alsa-tools/files')
-rw-r--r-- | media-sound/alsa-tools/files/alsa-tools-1.2.5-hdspmixer-crash.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/media-sound/alsa-tools/files/alsa-tools-1.2.5-hdspmixer-crash.patch b/media-sound/alsa-tools/files/alsa-tools-1.2.5-hdspmixer-crash.patch new file mode 100644 index 000000000000..c80e3f7e47bb --- /dev/null +++ b/media-sound/alsa-tools/files/alsa-tools-1.2.5-hdspmixer-crash.patch @@ -0,0 +1,23 @@ +https://github.com/alsa-project/alsa-tools/commit/8c8d6941f21ea68894ce7fd13e92b3ac9f16dc8a + +From 8c8d6941f21ea68894ce7fd13e92b3ac9f16dc8a Mon Sep 17 00:00:00 2001 +From: wynnfeng <wynnfeng@tencent.com> +Date: Sun, 29 Jan 2023 20:47:53 +0800 +Subject: [PATCH] hdspmixer: fix core dump + +Initialize the name pointer to NULL. + +Fixes: https://github.com/alsa-project/alsa-tools/pull/14 +Signed-off-by: wynnfeng <wynnfeng@tencent.com> +Signed-off-by: Jaroslav Kysela <perex@perex.cz> +--- a/hdspmixer/src/hdspmixer.cxx ++++ b/hdspmixer/src/hdspmixer.cxx +@@ -39,7 +39,7 @@ int main(int argc, char **argv) + { + HDSPMixerWindow *window; + HDSPMixerCard *hdsp_cards[3]; +- char *name, *shortname; ++ char *name = NULL, *shortname; + int card; + int cards = 0; + |