Files
linux/drivers/staging
Daniel Micay 06ffd63b8e staging/rts5208: Fix read overflow in memcpy
commit 88a5b39b69 upstream.

Noticed by FORTIFY_SOURCE, this swaps memcpy() for strncpy() to zero-value
fill the end of the buffer instead of over-reading a string from .rodata.

Signed-off-by: Daniel Micay <danielmicay@gmail.com>
[kees: wrote commit log]
Signed-off-by: Kees Cook <keescook@chromium.org>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Wayne Porter <wporter82@gmail.com>
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
2023-05-15 08:10:50 +09:00
..
2016-10-02 15:40:04 +02:00
2016-10-02 15:40:04 +02:00