diff options
author | Dan Carpenter <error27@gmail.com> | 2010-08-27 22:02:15 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2010-08-28 11:59:33 +0200 |
commit | 7a28826ac73d31a379d93785d8fbd24ab492b0bd (patch) | |
tree | 3b3af569f7451b45941f9089494eb30487b7cb6f /sound/pcmcia | |
parent | sound: oss: fix uninitialized spinlock (diff) | |
download | linux-7a28826ac73d31a379d93785d8fbd24ab492b0bd.tar.xz linux-7a28826ac73d31a379d93785d8fbd24ab492b0bd.zip |
ALSA: pcm: add more format names
There were some new formats added in commit 15c0cee6c809 "ALSA: pcm:
Define G723 3-bit and 5-bit formats". That commit increased
SNDRV_PCM_FORMAT_LAST as well. My concern is that there are a couple
places which do:
for (i = 0; i < SNDRV_PCM_FORMAT_LAST; i++) {
if (dummy->pcm_hw.formats & (1ULL << i))
snd_iprintf(buffer, " %s", snd_pcm_format_name(i));
}
I haven't tested these but it looks like if "i" were equal to
SNDRV_PCM_FORMAT_G723_24 or higher then we might read past the end of
the array.
Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pcmcia')
0 files changed, 0 insertions, 0 deletions