mirror of
https://github.com/torvalds/linux.git
synced 2026-05-23 22:52:19 +02: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:
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
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user