Steve Lee 97ed3e509e
ASoC: max98390: Fix potential crash during param fw loading
malformed firmware file can cause out-of-bound access and crash
 during dsm_param bin loading.
  - add MIN/MAX param size to avoid out-of-bound access.
  - read start addr and size of param and check bound.
  - add condition that fw->size > param_size + _PAYLOAD_OFFSET
    to confirm enough data.

Signed-off-by: Steve Lee <steves.lee@maximintegrated.com>
Link: https://lore.kernel.org/r/20200604054731.21140-1-steves.lee@maximintegrated.com
Signed-off-by: Mark Brown <broonie@kernel.org>
2020-06-04 15:04:30 +01:00
..
2020-01-05 16:14:27 +01:00
2020-04-10 12:27:06 -07:00
2020-01-28 16:26:57 -08:00
2020-01-05 16:14:56 +01:00
2020-01-05 16:15:13 +01:00
2020-01-05 16:14:46 +01:00
2020-01-28 16:26:57 -08:00
2019-08-08 08:18:32 +02:00