OSDN Git Service

ASoC: wm_adsp: Don't overrun firmware file buffer when reading region data
authorRichard Fitzgerald <rf@opensource.wolfsonmicro.com>
Tue, 20 Dec 2016 10:29:12 +0000 (10:29 +0000)
committerMark Brown <broonie@kernel.org>
Tue, 20 Dec 2016 11:38:49 +0000 (11:38 +0000)
commit1cab2a84f470e15ecc8e5143bfe9398c6e888032
tree2ce157df842149394a8fef82b70d17f336e48947
parentfb4587da5b1da8415a716193522c395280b4049b
ASoC: wm_adsp: Don't overrun firmware file buffer when reading region data

Protect against corrupt firmware files by ensuring that the length we
get for the data in a region actually lies within the available firmware
file data buffer.

Signed-off-by: Richard Fitzgerald <rf@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/wm_adsp.c