summaryrefslogtreecommitdiffstats
path: root/.gitignore
diff options
context:
space:
mode:
authorTom Zanussi2019-03-05 17:11:59 +0100
committerSteven Rostedt (VMware)2019-03-05 18:14:28 +0100
commit27242c62b141240079d1ac8d35adcdc70cae8895 (patch)
treeb299bf0b9a4be91197e5f23e83ef330dcf5363e7 /.gitignore
parenttracing: Use strncpy instead of memcpy for string keys in hist triggers (diff)
downloadkernel-qcow2-linux-27242c62b141240079d1ac8d35adcdc70cae8895.tar.gz
kernel-qcow2-linux-27242c62b141240079d1ac8d35adcdc70cae8895.tar.xz
kernel-qcow2-linux-27242c62b141240079d1ac8d35adcdc70cae8895.zip
tracing: Use strncpy instead of memcpy when copying comm for hist triggers
Because there may be random garbage beyond a string's null terminator, code that might use the entire comm array e.g. histogram keys, can give unexpected results if that garbage is copied in too, so avoid that possibility by using strncpy instead of memcpy. Link: http://lkml.kernel.org/r/1eb9f096a8086c3c82c7fc087c900005143cec54.1551802084.git.tom.zanussi@linux.intel.com Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com> Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions