ALSA: hda - Check strcpy length
authorTakashi Iwai <tiwai@suse.de>
Thu, 16 Apr 2009 08:22:24 +0000 (10:22 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 16 Apr 2009 08:22:24 +0000 (10:22 +0200)
commit18cb7109d3e83195b605ff2905981020e86f72ca
tree7db1fa0c6ec8656a0a041bf9163b0656dd4a5765
parent4e01f54bfd3f423db8fd6c91c4f0471f18aa0c50
ALSA: hda - Check strcpy length

Check the length to copy via strlen() beforehand to avoid the stack
corruption, or use strlcpy() to be safe in HD-audio codes.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_codec.c
sound/pci/hda/hda_intel.c