mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-11 01:53:20 -04:00
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:
committed by
Borislav Petkov (AMD)
parent
b4432656b3
commit
003f144ca0
@@ -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
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user