aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorRuben Wauters <rubenru09@aol.com>2025-05-01 21:23:55 +0100
committerJakub Kicinski <kuba@kernel.org>2025-05-05 18:16:11 -0700
commitc2dbda07662eb84dfe07887775d08eb1536c2d22 (patch)
tree7d41e58e02322fb9c74740488fc1dd41ca77b751 /tools/perf/scripts/python/export-to-postgresql.py
parentMerge branch 'net-ethtool-introduce-ethnl-dump-helpers' (diff)
downloadwireguard-linux-c2dbda07662eb84dfe07887775d08eb1536c2d22.tar.xz
wireguard-linux-c2dbda07662eb84dfe07887775d08eb1536c2d22.zip
ipv4: ip_tunnel: Replace strcpy use with strscpy
Use of strcpy is decpreated, replaces the use of strcpy with strscpy as recommended. strscpy was chosen as it requires a NUL terminated non-padded string, which is the case here. I am aware there is an explicit bounds check above the second instance, however using strscpy protects against buffer overflows in any future code, and there is no good reason I can see to not use it. I have also replaced the scrscpy above that had 3 params with the version using 2 params. These are functionally equivalent, but it is cleaner to have both using 2 params. Signed-off-by: Ruben Wauters <rubenru09@aol.com> Reviewed-by: Simon Horman <horms@kernel.org> Link: https://patch.msgid.link/20250501202935.46318-1-rubenru09@aol.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions