ALSA: caiaq - Fix possible string-buffer overflow
commit4998eea9f23a360bfb56ea838ecc860ade7b92a1
authorTakashi Iwai <tiwai@suse.de>
Mon, 14 Feb 2011 21:45:59 +0000 (14 22:45 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 2 Mar 2011 14:46:51 +0000 (2 09:46 -0500)
treeaac5f980a7e7cec1b194ea927f18301a7d920aba
parent57937aa1582428c023aaf645804b33abf609591c
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