mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-05 13:30:00 -05: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
|
|
@ -502,7 +502,7 @@ int snd_pcm_dsnoop_open(snd_pcm_t **pcmp, const char *name,
|
|||
goto _err_nosem;
|
||||
}
|
||||
|
||||
ret = snd_pcm_direct_parse_bindings(dsnoop, opts->bindings);
|
||||
ret = snd_pcm_direct_parse_bindings(dsnoop, params, opts->bindings);
|
||||
if (ret < 0)
|
||||
goto _err_nosem;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue