commit | 1d6ebac26570c2a29ce9fb575379f17ef5c8b81b | [log] [tgz] |
---|---|---|
author | Tom Zanussi <tom.zanussi@linux.intel.com> | Tue Mar 05 09:36:48 2019 -0600 |
committer | Tom Zanussi <tom.zanussi@linux.intel.com> | Tue Mar 05 09:55:03 2019 -0600 |
tree | 04c63d599f3d8579bf5f699080238da9b31455f4 | |
parent | 1eb9f096a8086c3c82c7fc087c900005143cec54 [diff] |
tracing: Use strncpy instead of memcpy when copying comm in trace.c 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. Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com> Suggested-by: Steven Rostedt (VMware) <rostedt@goodmis.org>