staging/most: Remove all strcpy() uses in favor of strscpy()
authorLen Baker <len.baker@gmx.com>
Sat, 17 Jul 2021 16:05:12 +0000 (18:05 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 Jul 2021 13:10:41 +0000 (15:10 +0200)
commitfa8db3989362866ea1beb1314fc4e86f373a6425
tree19997dc73759ecef1510659a636a0f9af88b7159
parent56315e55119c0ea57e142b6efb7c31208628ad86
staging/most: 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/20210717160512.16176-1-len.baker@gmx.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/most/video/video.c