ALSA: hda_hwdep: Fix possible buffer overflow
authorAlexander Stein <alexander.stein@systec-electronic.com>
Tue, 1 Nov 2011 08:40:07 +0000 (09:40 +0100)
committerTakashi Iwai <tiwai@suse.de>
Tue, 1 Nov 2011 08:46:39 +0000 (09:46 +0100)
commit359f90982cba0ba8db39b683de05dcb2de64b979
tree16c4a21f9968f3a5e84f0d274244861f7f173903
parent228cf79376f13b98f2e1ac10586311312757675c
ALSA: hda_hwdep: Fix possible buffer overflow

If a line in the firmware file is larger than the given buffer size (and
so the firmware file size), size is set to a value larger than the actual
buffer size. This results in an overflow in the buffer passed.

Signed-off-by: Alexander Stein <alexander.stein@systec-electronic.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_hwdep.c