staging/ks7010: Remove all strcpy() uses in favor of strscpy()
authorLen Baker <len.baker@gmx.com>
Fri, 23 Jul 2021 14:51:22 +0000 (16:51 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 Jul 2021 13:21:02 +0000 (15:21 +0200)
commit3c6675363de5aa168c23431cf90db455c1901b6e
tree313e9ffd1dc1e42025ac2a6b97b20afeb64ff50f
parentcf79ee6eb0d7d5f45ad58c395ee855e2e1bbc9b2
staging/ks7010: Remove all strcpy() uses in favor of strscpy()

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>
Link: https://lore.kernel.org/r/20210723145122.5746-1-len.baker@gmx.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ks7010/ks_wlan_net.c