summaryrefslogtreecommitdiff
path: root/media-sound/alsa-tools/files/alsa-tools-1.2.5-hdspmixer-crash.patch
diff options
context:
space:
mode:
Diffstat (limited to 'media-sound/alsa-tools/files/alsa-tools-1.2.5-hdspmixer-crash.patch')
-rw-r--r--media-sound/alsa-tools/files/alsa-tools-1.2.5-hdspmixer-crash.patch23
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;
+