aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/syscall-counts-by-pid.py
diff options
context:
space:
mode:
authorLen Baker <len.baker@gmx.com>2021-08-17 18:58:59 +0200
committerWolfram Sang <wsa@kernel.org>2021-08-17 21:37:40 +0200
commite47a0ced40472cfbe3e77502098ad489ba16bf97 (patch)
treed1d7aac5c63412401fad120fe889fcb2ac993d9d /tools/perf/scripts/python/syscall-counts-by-pid.py
parente517992bbce06228f07b9bbea3233cc0fb04e802 (diff)
i2c: sun6i-pw2i: Prefer strscpy over strlcpy
strlcpy() reads the entire source buffer first. This read may exceed the destination size limit. This is both inefficient and can lead to linear read overflows if a source string is not NUL-terminated. The safe replacement is strscpy(). This is a previous step in the path to remove the strlcpy() function entirely from the kernel [1]. [1] https://github.com/KSPP/linux/issues/89 Signed-off-by: Len Baker <len.baker@gmx.com> Signed-off-by: Wolfram Sang <wsa@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions