[alsa-devel] [patch] pcm: add MMAP_EMUL to type names

Jaroslav Kysela perex at perex.cz
Tue Nov 23 13:41:16 CET 2010


On Tue, 23 Nov 2010, Dan Carpenter wrote:

> If we try to print this then it causes a read past the end of the array
> in snd_pcm_type_name().

Applied. Thanks.

 					Jaroslav

>
> diff --git a/src/pcm/pcm.c b/src/pcm/pcm.c
> index 7409943..906b502 100644
> --- a/src/pcm/pcm.c
> +++ b/src/pcm/pcm.c
> @@ -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[] = {
>

-----
Jaroslav Kysela <perex at perex.cz>
Linux Kernel Sound Maintainer
ALSA Project, Red Hat, Inc.



More information about the Alsa-devel mailing list