staging/rtl8712: Remove all strcpy() uses in favor of strscpy()
authorLen Baker <len.baker@gmx.com>
Sat, 17 Jul 2021 15:51:45 +0000 (17:51 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 21 Jul 2021 09:20:54 +0000 (11:20 +0200)
commitd2c57736c430a3fa2c5de2146642eb41f8fe6ca7
treea73c2f39120205b12bc5f9f8119b6861bc203e0e
parent39630204a96aebdb29634b5f4aea6518e2b97eca
staging/rtl8712: 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/20210717155145.15041-1-len.baker@gmx.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8712/os_intfs.c