staging/wlan-ng: Remove all strcpy() uses in favor of strscpy()
authorLen Baker <len.baker@gmx.com>
Sat, 17 Jul 2021 15:20:32 +0000 (17:20 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 Jul 2021 13:11:10 +0000 (15:11 +0200)
commitc10fe0cc3ec4089d5da21faa732d74a40efbc07a
treef7d3e6bac4185ccac083ba3dc9b8cb42f7d966ea
parentfa8db3989362866ea1beb1314fc4e86f373a6425
staging/wlan-ng: 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/20210717152032.10164-1-len.baker@gmx.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wlan-ng/prism2fw.c