diff options
author | 2023-08-09 01:06:10 +0000 | |
---|---|---|
committer | 2023-08-22 15:13:21 +0200 | |
commit | aa222dd190d69ca8e0e2b990ec171c67a74d5383 (patch) | |
tree | edf02a205e60f1af1c17f25fb8957ec7cd5ba480 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | netfilter: x_tables: refactor deprecated strncpy (diff) | |
download | wireguard-linux-aa222dd190d69ca8e0e2b990ec171c67a74d5383.tar.xz wireguard-linux-aa222dd190d69ca8e0e2b990ec171c67a74d5383.zip |
netfilter: xtables: refactor deprecated strncpy
Prefer `strscpy_pad` as it's a more robust interface whilst maintaing
zero-padding behavior.
There may have existed a bug here due to both `tbl->repl.name` and
`info->name` having a size of 32 as defined below:
| #define XT_TABLE_MAXNAMELEN 32
This may lead to buffer overreads in some situations -- `strscpy` solves
this by guaranteeing NUL-termination of the dest buffer.
Signed-off-by: Justin Stitt <justinstitt@google.com>
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions