mirror of
https://github.com/torvalds/linux.git
synced 2026-11-27 00:43:12 +00:00
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 <[email protected]> [kees: wrote commit log] Signed-off-by: Kees Cook <[email protected]> Cc: Greg Kroah-Hartman <[email protected]> Cc: Wayne Porter <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>