]> git.alsa-project.org Git - alsa-utils.git/commit
speaker-test: fix segfault with more than 16 channels
authorGeoffrey D. Bennett <g@b4.vu>
Mon, 26 Jan 2026 17:22:15 +0000 (03:52 +1030)
committerJaroslav Kysela <perex@perex.cz>
Mon, 25 May 2026 09:40:47 +0000 (11:40 +0200)
commit7c664bce146785546204478bc745bb7b454f5245
tree2988460c99c726138956ac9e8b056821b80923e5
parentf3e849b63a1a43e57e31fb95667ad8441935ea57
speaker-test: fix segfault with more than 16 channels

get_channel_name() was accessing the channel_name array without bounds
checking. When using more than 16 channels without a channel map, it
would read past the end of the array and crash.

Closes: https://github.com/alsa-project/alsa-utils/pull/319
Signed-off-by: Geoffrey D. Bennett <g@b4.vu>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
speaker-test/speaker-test.c