]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit34c51cf2e933b768f5632ac035b08709b061d80a
tree7db1fa0c6ec8656a0a041bf9163b0656dd4a5765
parent5d712853954f7d9345b348422cc75b8ec32f43a5
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