]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ALSA: caiaq - Fix possible string-buffer overflow
authorTakashi Iwai <tiwai@suse.de>
Mon, 14 Feb 2011 21:45:59 +0000 (22:45 +0100)
committerAK <andi@firstfloor.org>
Thu, 31 Mar 2011 18:58:08 +0000 (11:58 -0700)
commit2d1db98fe0e20e7e419451e7eef36289cbdc4c68
tree70338be553d2ee447bf2de4f55983ba9a68a89cd
parent1e1e015ade892234b1b0e487521af07f46117aa5
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>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
sound/usb/caiaq/audio.c
sound/usb/caiaq/midi.c