drivers/net/usb: Remove all strcpy() uses
authorLen Baker <len.baker@gmx.com>
Sun, 1 Aug 2021 17:12:26 +0000 (19:12 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 3 Aug 2021 10:48:28 +0000 (11:48 +0100)
commit493c3ca6bd754d8587604496eb814f72e933075d
tree370ce9459825c597ebb1b30b6ef0c2864c1e784d
parent9c638eaf42ec8d62ed028feb7a5b7f2759087971
drivers/net/usb: Remove all strcpy() uses

strcpy() performs no bounds checking on the destination buffer. This
could result in linear overflows beyond the end of the buffer, leading
to all kinds of misbehaviors. The safe replacement is strscpy().

Signed-off-by: Len Baker <len.baker@gmx.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/ipheth.c
drivers/net/usb/usbnet.c