Commit 003f144c authored by Ruben Wauters's avatar Ruben Wauters Committed by Borislav Petkov (AMD)
Browse files

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: default avatarRuben Wauters <rubenru09@aol.com>
Signed-off-by: default avatarBorislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/20250429230710.54014-1-rubenru09@aol.com
parent b4432656
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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
	/*