aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorAndrii Nakryiko <andriin@fb.com>2019-07-02 08:16:20 -0700
committerDaniel Borkmann <daniel@iogearbox.net>2019-07-03 11:52:45 +0200
commitcdfc7f888c2a355b01308e97c6df108f1c2b64e8 (patch)
treee5af226c6107e531e09f61aad19520ec392cf483 /tools/perf/scripts/python/export-to-postgresql.py
parentbpf: fix precision tracking (diff)
downloadwireguard-linux-cdfc7f888c2a355b01308e97c6df108f1c2b64e8.tar.xz
wireguard-linux-cdfc7f888c2a355b01308e97c6df108f1c2b64e8.zip
libbpf: fix GCC8 warning for strncpy
GCC8 started emitting warning about using strncpy with number of bytes exactly equal destination size, which is generally unsafe, as can lead to non-zero terminated string being copied. Use IFNAMSIZ - 1 as number of bytes to ensure name is always zero-terminated. Signed-off-by: Andrii Nakryiko <andriin@fb.com> Cc: Magnus Karlsson <magnus.karlsson@intel.com> Acked-by: Yonghong Song <yhs@fb.com> Acked-by: Magnus Karlsson <magnus.karlsson@intel.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions