aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/net/af_unix/unix_connect.c
diff options
context:
space:
mode:
authorRichard Fitzgerald <rf@opensource.cirrus.com>2024-07-08 15:48:55 +0100
committerMark Brown <broonie@kernel.org>2024-07-08 15:55:11 +0100
commit680e126ec0400f6daecf0510c5bb97a55779ff03 (patch)
treeb4b29ef9aca7347578468f4501f0ed2494f468d6 /tools/testing/selftests/net/af_unix/unix_connect.c
parent82bb8db96610b558920b8c57cd250ec90567d79b (diff)
firmware: cs_dsp: Use strnlen() on name fields in V1 wmfw files
Use strnlen() instead of strlen() on the algorithm and coefficient name string arrays in V1 wmfw files. In V1 wmfw files the name is a NUL-terminated string in a fixed-size array. cs_dsp should protect against overrunning the array if the NUL terminator is missing. 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/20240708144855.385332-1-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