diff options
author | Thorsten Blum <thorsten.blum@linux.dev> | 2025-08-19 11:59:04 +0200 |
---|---|---|
committer | Daniel Thompson (RISCstar) <danielt@kernel.org> | 2025-09-20 19:56:28 +0100 |
commit | 8790cc2940bf9f5ec4d7458b0ea7f94a8acb094f (patch) | |
tree | 67047caad5b2b59852ff746216fccd468789ee2c /net/unix/af_unix.c | |
parent | d4be3238d9e5f4841e5385cba3d81268c00d9e7d (diff) |
kdb: Replace deprecated strcpy() with memmove() in vkdb_printf()
strcpy() is deprecated and its behavior is undefined when the source and
destination buffers overlap. Use memmove() instead to avoid any
undefined behavior.
Adjust comments for clarity.
Link: https://github.com/KSPP/linux/issues/88
Fixes: 5d5314d6795f ("kdb: core for kgdb back end (1 of 2)")
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Signed-off-by: Daniel Thompson (RISCstar) <danielt@kernel.org>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions