]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: Limit the fallback card id string size
authorTakashi Iwai <tiwai@suse.de>
Tue, 29 Oct 2013 14:20:06 +0000 (15:20 +0100)
committerTakashi Iwai <tiwai@suse.de>
Tue, 29 Oct 2013 14:20:06 +0000 (15:20 +0100)
commit0750ac4beb5ac53be2a2d284b20d41cb6b122959
treec732ad0aef8aa12e5b9817bed561403735924539
parentd09d4469164d5eea79cf3407f76a4d505a2fd70c
ALSA: Limit the fallback card id string size

When no proper id string is given, the driver tries to fall back to
copy the proc_root name string via strcpy(), but this might overflow
the fixed string size.  Let's use strlcpy().

Spotted by coverity CID 139008.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/init.c