linux/arch/xtensa
Jason Wang 9ddef266bc xtensa: use strscpy to copy strings
The strlcpy should not be used because it doesn't limit the source
length. So that it will lead some potential bugs.

But the strscpy doesn't require reading memory from the src string
beyond the specified "count" bytes, and since the return value is
easier to error-check than strlcpy()'s. In addition, the implementation
is robust to the string changing out from underneath it, unlike the
current strlcpy() implementation.

Thus, replace strlcpy with strscpy.

Signed-off-by: Jason Wang <wangborong@cdjrlc.com>
Message-Id: <20211220084756.955307-1-wangborong@cdjrlc.com>
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
2022-03-06 20:17:09 -08:00
..
boot kbuild: do not quote string values in include/config/auto.conf 2022-01-08 18:03:57 +09:00
configs rcu: Fix undefined Kconfig macros 2021-09-13 16:32:46 -07:00
include bitmap patches for 5.17-rc1 2022-01-23 06:20:44 +02:00
kernel xtensa: use strscpy to copy strings 2022-03-06 20:17:09 -08:00
lib xtensa: don't use a12 in __xtensa_copy_user in call0 ABI 2021-10-18 22:19:34 -07:00
mm mm: remove redundant check about FAULT_FLAG_ALLOW_RETRY bit 2022-01-15 16:30:27 +02:00
platforms net: xtensa: use strscpy to copy strings 2022-03-06 20:17:08 -08:00
variants xtensa: add test_kc705_be variant 2018-08-20 12:34:45 -07:00
Kbuild xtensa: move core-y in arch/xtensa/Makefile to arch/xtensa/Kbuild 2021-08-11 11:37:13 -07:00
Kconfig futex: Remove futex_cmpxchg detection 2021-11-25 00:02:28 +01:00
Kconfig.debug xtensa: make stack dump size configurable 2019-11-26 11:33:39 -08:00
Makefile kbuild: do not quote string values in include/config/auto.conf 2022-01-08 18:03:57 +09:00