1. Sep 09, 2010
  2. Sep 07, 2010
  3. Sep 06, 2010
  4. Sep 03, 2010
  5. Aug 29, 2010
  6. Aug 28, 2010
    • Dan Carpenter's avatar
      ALSA: pcm: add more format names · 7a28826a
      Dan Carpenter authored
      There were some new formats added in commit 15c0cee6
      
       "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: default avatarDan Carpenter <error27@gmail.com>
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      7a28826a