mingzh d064f9840e dsp-kernel: use memcpy() instead of strcpy()
Current code uses strcpy() to copy strings, which has a problem with potential buffer overflows if the source string is longer than the destination buffer. We can improve this by using memcpy() with a specified length, because it allows us to control the number of bytes copied and thus prevent buffer overflows.

Change-Id: I9dd5da343bfd63e4e031a66fa26b103e3da573e0
Signed-off-by: mingzh <quic_mingzh@quicinc.com>
2024-07-29 02:41:52 -07:00
2022-10-20 10:29:34 -07:00
2024-05-09 13:00:44 +05:30
2023-06-12 11:04:11 -07:00
2023-01-26 23:23:19 -08:00
2023-01-26 23:23:19 -08:00
Description
No description provided
226 MiB
Languages
C 98.7%
C++ 0.9%
Makefile 0.3%
Starlark 0.1%