Skip to content
Commit 88a5b39b authored by Daniel Micay's avatar Daniel Micay Committed by Greg Kroah-Hartman
Browse files

staging/rts5208: Fix read overflow in memcpy



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: default avatarDaniel Micay <danielmicay@gmail.com>
[kees: wrote commit log]
Signed-off-by: default avatarKees Cook <keescook@chromium.org>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Wayne Porter <wporter82@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 372bd1eb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment