diff options
author | Tom Zanussi <tom.zanussi@linux.intel.com> | 2018-03-28 15:10:56 -0500 |
---|---|---|
committer | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2018-04-06 08:56:50 -0400 |
commit | ad452870c66e05819a99b491b500a13989a1c502 (patch) | |
tree | d38131cc0ac81f73a0daeb9625d384e7821133be /kernel/power | |
parent | 48f794731e4ca7b83b8b22a48bfc8641fa77dd09 (diff) | |
download | linux-ad452870c66e05819a99b491b500a13989a1c502.tar.bz2 |
tracing: Make sure variable string fields are NULL-terminated
The strncpy() currently being used for variable string fields can
result in a lack of termination if the string length is equal to the
field size. Use the safer strscpy() instead, which will guarantee
termination.
Link: http://lkml.kernel.org/r/fb97c1e518fb358c12a4057d7445ba2c46956cd7.1522256721.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 'kernel/power')
0 files changed, 0 insertions, 0 deletions