x86/CPU/AMD: Replace strcpy() with strscpy()

strcpy() is deprecated due to issues with bounds checking and overflows.
Replace it with strscpy().

Signed-off-by: Ruben Wauters <rubenru09@aol.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/20250429230710.54014-1-rubenru09@aol.com
This commit is contained in:
Ruben Wauters
2025-04-30 00:03:59 +01:00
committed by Borislav Petkov (AMD)
parent b4432656b3
commit 003f144ca0

View File

@@ -643,7 +643,7 @@ static void init_amd_k8(struct cpuinfo_x86 *c)
}
if (!c->x86_model_id[0])
strcpy(c->x86_model_id, "Hammer");
strscpy(c->x86_model_id, "Hammer");
#ifdef CONFIG_SMP
/*