Skip to content

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

Open
geoffreybennett wants to merge 1 commit intoalsa-project:masterfrom
geoffreybennett:fix-speaker-test-channel-overflow
Open

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

Conversation

@geoffreybennett
Copy link

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>
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