Skip to content

speaker-test: fix segfault with more than 16 channels#319

Closed
geoffreybennett wants to merge 1 commit into
alsa-project:masterfrom
geoffreybennett:fix-speaker-test-channel-overflow
Closed

speaker-test: fix segfault with more than 16 channels#319
geoffreybennett wants to merge 1 commit into
alsa-project:masterfrom
geoffreybennett:fix-speaker-test-channel-overflow

Conversation

@geoffreybennett
Copy link
Copy Markdown
Contributor

get_channel_name() accessed 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.

Tested with 26 channels on Scarlett 4th Gen 18i20.

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.

Signed-off-by: Geoffrey D. Bennett <g@b4.vu>
@perexg perexg closed this in 7c664bc May 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant