Loading
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: 5d5314d6 ("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>