]> git.alsa-project.org Git - alsa-lib.git/commit
pcm: direct plugins - fix bad memory access when channel bindings do not match hw
authorJaroslav Kysela <perex@perex.cz>
Mon, 21 Jun 2021 13:14:18 +0000 (15:14 +0200)
committerJaroslav Kysela <perex@perex.cz>
Mon, 21 Jun 2021 13:18:28 +0000 (15:18 +0200)
commite0e084659083c2ab75d5c894f24227ea2f67010f
tree359b066122a05fe40fcf99af58d8bd6166cda354
parenta5e11f9a810391777ea7750f04ba66f9c9e624de
pcm: direct plugins - fix bad memory access when channel bindings do not match hw

Fix and cleanup snd_pcm_direct_check_interleave() function.
Add requested / hardware channel check and use goto when the interleaved

Fixes: https://github.com/alsa-project/alsa-lib/issues/117
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
src/pcm/pcm_direct.c