linux/drivers/misc/enclosure.c
David Laight 6994c8b4ef drivers/misc/enclosure: Replace strcpy() + strcat() with snprintf()
While the sizeof the target buffer is (should be) ENCLOSURE_NAME_SIZE
and the copies should not overrrun this stops any static analysis objecting
to the unbounded strcpy() and strcat() calls

Signed-off-by: David Laight <david.laight.linux@gmail.com>
Link: https://patch.msgid.link/20260608095523.2606-18-david.laight.linux@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2026-07-17 15:49:07 +02:00

684 lines
18 KiB