linux/sound/soc/intel/sst
Christian Engelmayer 279e17ae81 ASoC: Intel: sst: Fix firmware name size handling
Function sst_acpi_probe() uses plain strcpy for setting member firmware_name
of a struct intel_sst_drv from member firmware of a struct sst_machines.
Thereby the destination array has got a length of 20 byte while the source may
hold 32 byte. Since eg. commit 64b9c90b86 ("ASoC: Intel: Fix BYTCR firmware
name") increased strings from "fw_sst_0f28.bin" to "intel/fw_sst_0f28.bin"
there is an actual possibility that the 20 byte array at the end of struct
intel_sst_drv is overrun.

Thus increase the size of the destination and use the same define for both
structs. Detected by Coverity CID 1260087.

Signed-off-by: Christian Engelmayer <cengelma@gmx.at>
Signed-off-by: Mark Brown <broonie@kernel.org>
Cc: stable@vger.kernel.org
2015-02-08 11:08:27 +08:00
..
Makefile ASoC: Intel: mrfld- add ACPI module 2014-11-14 11:07:43 +00:00
sst_acpi.c ASoC: Intel: sst: Fix firmware name size handling 2015-02-08 11:08:27 +08:00
sst_drv_interface.c ASoC: Intel: sst - add compressed ops handling 2014-10-31 12:52:43 +00:00
sst_ipc.c ASoC: Intel: use lock when changing SST state. 2014-10-31 12:47:44 +00:00
sst_loader.c ASoC: Intel: use correct firmware name 2014-10-31 12:51:14 +00:00
sst_pci.c ASoC: Intel: mrfld - create separate module for pci part 2014-11-06 12:36:17 +00:00
sst_pvt.c ASoC: Intel: mrfld- add ACPI module 2014-11-14 11:07:43 +00:00
sst_stream.c ASoC: Intel: sst: add stream operations 2014-10-20 12:20:34 +01:00
sst.c ASoC: Intel: add support for Cherrytrail and Braswell in SST driver 2014-11-21 19:23:01 +00:00
sst.h ASoC: Intel: sst: Fix firmware name size handling 2015-02-08 11:08:27 +08:00