diff options
author | Tom Zanussi <[email protected]> | 2019-03-05 10:12:00 -0600 |
---|---|---|
committer | Steven Rostedt (VMware) <[email protected]> | 2019-03-05 12:14:42 -0500 |
commit | 85f726a35e504418607b77c5e7da165dc1ea63ce (patch) | |
tree | 04c63d599f3d8579bf5f699080238da9b31455f4 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 27242c62b141240079d1ac8d35adcdc70cae8895 (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.
Link: http://lkml.kernel.org/r/1d6ebac26570c2a29ce9fb575379f17ef5c8b81b.1551802084.git.tom.zanussi@linux.intel.com
Signed-off-by: Tom Zanussi <[email protected]>
Suggested-by: Steven Rostedt (VMware) <[email protected]>
Signed-off-by: Steven Rostedt (VMware) <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions