mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-31 22:25:35 -04:00
Add check of binding ranges in direct plugins
Add checks of slave channel numbers in bindings of dmix/dsnoop/dshare plugins to avoid segfault. Also, fix a possible memory leaks in the error path.
This commit is contained in:
parent
4632e0f637
commit
6ff727bb7f
5 changed files with 25 additions and 11 deletions
|
|
@ -808,7 +808,7 @@ int snd_pcm_dmix_open(snd_pcm_t **pcmp, const char *name,
|
|||
goto _err_nosem;
|
||||
}
|
||||
|
||||
ret = snd_pcm_direct_parse_bindings(dmix, opts->bindings);
|
||||
ret = snd_pcm_direct_parse_bindings(dmix, params, opts->bindings);
|
||||
if (ret < 0)
|
||||
goto _err_nosem;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue