staging/rtl8192u: Remove all strcpy() uses in favor of strscpy()
authorLen Baker <len.baker@gmx.com>
Sun, 18 Jul 2021 11:32:07 +0000 (13:32 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 Jul 2021 13:21:13 +0000 (15:21 +0200)
commit246f920cb731950bea4501dc68ab2f8ad66e8b8d
tree91a3644fc7cafd870b0ccbbdac8ed6e3eede161d
parent3c6675363de5aa168c23431cf90db455c1901b6e
staging/rtl8192u: 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/20210718113207.10045-1-len.baker@gmx.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c