From: Jaroslav Kysela Date: Tue, 23 Nov 2010 12:40:25 +0000 (+0100) Subject: pcm: add MMAP_EMUL to type names X-Git-Tag: v1.0.24~10 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=a4f71b19407fde8d5fd4f35850543173636b3ee0;p=alsa-lib.git 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 Signed-off-by: Jaroslav Kysela --- diff --git a/src/pcm/pcm.c b/src/pcm/pcm.c index 74099438..906b5025 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[] = {