public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] MIPS: BCM63XX: Replace strcpy() with strscpy() in board_prom_init()
@ 2025-04-22  7:42 Thorsten Blum
  2025-04-22  8:03 ` Andy Shevchenko
  2025-04-27  7:55 ` Thomas Bogendoerfer
  0 siblings, 2 replies; 7+ messages in thread
From: Thorsten Blum @ 2025-04-22  7:42 UTC (permalink / raw)
  To: Thomas Bogendoerfer, Alexander Sverdlin, Andy Shevchenko,
	Linus Walleij, Bartosz Golaszewski
  Cc: Thorsten Blum, linux-hardening, linux-mips, linux-kernel

strcpy() is deprecated; use strscpy() instead.

Link: https://github.com/KSPP/linux/issues/88
Cc: linux-hardening@vger.kernel.org
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
---
 arch/mips/bcm63xx/boards/board_bcm963xx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/mips/bcm63xx/boards/board_bcm963xx.c b/arch/mips/bcm63xx/boards/board_bcm963xx.c
index 9cc8fbf218a5..c5617b889b1c 100644
--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
@@ -764,7 +764,7 @@ void __init board_prom_init(void)
 			snprintf(cfe_version, 12, "%s", (char *) &cfe[4]);
 		}
 	} else {
-		strcpy(cfe_version, "unknown");
+		strscpy(cfe_version, "unknown");
 	}
 	pr_info("CFE version: %s\n", cfe_version);
 
-- 
2.49.0


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2025-04-27  8:48 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-22  7:42 [PATCH] MIPS: BCM63XX: Replace strcpy() with strscpy() in board_prom_init() Thorsten Blum
2025-04-22  8:03 ` Andy Shevchenko
2025-04-22  8:27   ` Thorsten Blum
2025-04-22 10:17     ` Andy Shevchenko
2025-04-22 10:33       ` Thorsten Blum
2025-04-22 15:18         ` Andy Shevchenko
2025-04-27  7:55 ` Thomas Bogendoerfer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox