From 74ee5178596f42af46a2aa8372e6f8ead69428f3 Mon Sep 17 00:00:00 2001 From: Sam James Date: Fri, 5 May 2023 05:00:28 +0100 Subject: media-sound/alsa-tools: EAPI 8, fix hdspmixer crash Signed-off-by: Sam James --- .../files/alsa-tools-1.2.5-hdspmixer-crash.patch | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 media-sound/alsa-tools/files/alsa-tools-1.2.5-hdspmixer-crash.patch (limited to 'media-sound/alsa-tools/files') 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 +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 +Signed-off-by: Jaroslav Kysela +--- 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; + -- cgit v1.2.3-65-gdbad