staging/vc04_services: Remove all strcpy() uses in favor of strscpy()
authorLen Baker <len.baker@gmx.com>
Sun, 18 Jul 2021 13:12:17 +0000 (15:12 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 29 Jul 2021 15:26:30 +0000 (17:26 +0200)
commit7aaabc37943f383ec8d8e51b7fc43ae60fac4206
tree0c39d304345edb311d20e3b889b51b336e2523f1
parent041878d46ba37157814e6b650c9eff6efa7070d6
staging/vc04_services: 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/20210718131217.3806-1-len.baker@gmx.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c