aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/net/af_unix/unix_connect.c
diff options
context:
space:
mode:
authorRichard Fitzgerald <rf@opensource.cirrus.com>2024-06-27 15:14:31 +0100
committerMark Brown <broonie@kernel.org>2024-07-01 14:10:24 +0100
commit6598afa9320b6ab13041616950ca5f8f938c0cf1 (patch)
tree68e96e05fdd7a07b529e13581686122160c61f0b /tools/testing/selftests/net/af_unix/unix_connect.c
parent959fe01e85b7241e3ec305d657febbe82da16a02 (diff)
firmware: cs_dsp: Validate payload length before processing block
Move the payload length check in cs_dsp_load() and cs_dsp_coeff_load() to be done before the block is processed. The check that the length of a block payload does not exceed the number of remaining bytes in the firwmware file buffer was being done near the end of the loop iteration. However, some code before that check used the length field without validating it. Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com> Fixes: f6bc909e7673 ("firmware: cs_dsp: add driver to support firmware loading on Cirrus Logic DSPs") Link: https://patch.msgid.link/20240627141432.93056-4-rf@opensource.cirrus.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/testing/selftests/net/af_unix/unix_connect.c')
0 files changed, 0 insertions, 0 deletions