aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/stackcollapse-record
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <[email protected]>2021-06-30 18:52:11 -0700
committerLinus Torvalds <[email protected]>2021-06-30 20:47:30 -0700
commit1212e00c93a8016dfd70d209f428f8e0edd5856f (patch)
treeeed4577633da13458a38097d629ab3bfcf534596 /tools/perf/scripts/python/bin/stackcollapse-record
parent36af67370e33db2ec48693dd20d6b3cd049e07af (diff)
mm/thp: fix strncpy warning
Using MAX_INPUT_BUF_SZ as the maximum length of the string makes fortify complain as it thinks the string might be longer than the buffer, and if it is, we will end up with a "string" that is missing a NUL terminator. It's trivial to show that 'tok' points to a NUL-terminated string which is less than MAX_INPUT_BUF_SZ in length, so we may as well just use strcpy() and avoid the warning. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Matthew Wilcox (Oracle) <[email protected]> Cc: Mike Kravetz <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions