ALSA: caiaq - Fix possible string-buffer overflow
commit20e513d2753cc8172f478b8d0eec4375f3a090e7
authorTakashi Iwai <tiwai@suse.de>
Mon, 14 Feb 2011 21:45:59 +0000 (14 22:45 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 21 Mar 2011 19:45:11 +0000 (21 12:45 -0700)
tree0595f880f7c953bf25ecba4ccd451c6b02662c9d
parentb81e7b0ea0bfd2d5ff65f8a4702ea9c751f1d7f1
ALSA: caiaq - Fix possible string-buffer overflow

commit eaae55dac6b64c0616046436b294e69fc5311581 upstream.

Use strlcpy() to assure not to overflow the string array sizes by
too long USB device name string.

Reported-by: Rafa <rafa@mwrinfosecurity.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
sound/usb/caiaq/audio.c
sound/usb/caiaq/midi.c