aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/speakup/serialio.c
diff options
context:
space:
mode:
authorDaniel Micay <danielmicay@gmail.com>2017-06-05 21:52:34 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-06-06 16:16:10 +0200
commit88a5b39b69ab1828fd4130e2baadd184109cea69 (patch)
tree0fc290d6955867bc16aa6752857eb836c1264de5 /drivers/staging/speakup/serialio.c
parentstaging: rtl8723bs: fix a couple of spelling mistakes (diff)
downloadlinux-dev-88a5b39b69ab1828fd4130e2baadd184109cea69.tar.xz
linux-dev-88a5b39b69ab1828fd4130e2baadd184109cea69.zip
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: 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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/speakup/serialio.c')
0 files changed, 0 insertions, 0 deletions