All of lore.kernel.org
 help / color / mirror / Atom feed
* [patch] pcm: add MMAP_EMUL to type names
@ 2010-11-23 11:03 Dan Carpenter
  2010-11-23 12:41 ` Jaroslav Kysela
  0 siblings, 1 reply; 2+ messages in thread
From: Dan Carpenter @ 2010-11-23 11:03 UTC (permalink / raw)
  To: alsa-devel, perex

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

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[] = {

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-11-23 12:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-23 11:03 [patch] pcm: add MMAP_EMUL to type names Dan Carpenter
2010-11-23 12:41 ` Jaroslav Kysela

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.