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> |
||
---|---|---|
.. | ||
adsprpc_compat.c | ||
adsprpc_compat.h | ||
adsprpc_rpmsg.c | ||
adsprpc_shared.h | ||
adsprpc_socket.c | ||
adsprpc.c | ||
cdsp-loader.c | ||
fastrpc_trace.h |