mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-03 09:01:52 -05:00
pcm: add MMAP_EMUL to type names
If we try to print this then it causes a read past the end of the array in snd_pcm_type_name(). From: Dan Carpenter <error27@gmail.com> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
ade3efbd86
commit
a4f71b1940
1 changed files with 1 additions and 0 deletions
|
|
@ -1633,6 +1633,7 @@ static const char *const snd_pcm_type_names[] = {
|
|||
PCMTYPE(SOFTVOL),
|
||||
PCMTYPE(IOPLUG),
|
||||
PCMTYPE(EXTPLUG),
|
||||
PCMTYPE(MMAP_EMUL),
|
||||
};
|
||||
|
||||
static const char *const snd_pcm_subformat_names[] = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue