]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7b9abd1efbea7d5fd8fae25384f9f3ebec998156
tree16c4a21f9968f3a5e84f0d274244861f7f173903
parent73ee490cfe82c505c695ee982e681febe0822def
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