Justin Stitt aa222dd190 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>
2023-08-22 15:13:21 +02:00
..
2023-05-31 13:06:57 +02:00
2023-03-16 17:34:40 -07:00
2023-08-16 11:09:16 +01:00
2023-07-03 11:26:05 -07:00
2023-06-24 15:41:46 -07:00
2023-08-16 20:09:43 -07:00
2023-06-28 16:43:10 -07:00
2023-08-16 10:22:16 -07:00