diff options
| author | Dmitry Safonov <[email protected]> | 2024-04-13 01:42:54 +0000 |
|---|---|---|
| committer | Paolo Abeni <[email protected]> | 2024-04-16 11:35:06 +0000 |
| commit | beb78cd1329d039d73487ca05633d1b92e1ab2ea (patch) | |
| tree | 6e1e56bacbacd1168a89cbc9acf10eaf07e5d750 /net/unix/af_unix.c | |
| parent | selftests/tcp_ao: Zero-init tcp_ao_info_opt (diff) | |
| download | kernel-beb78cd1329d039d73487ca05633d1b92e1ab2ea.tar.gz kernel-beb78cd1329d039d73487ca05633d1b92e1ab2ea.zip | |
selftests/tcp_ao: Fix fscanf() call for format-security
On my new laptop with packages from nixos-unstable, gcc 12.3.0 produces:
> lib/proc.c: In function ‘netstat_read_type’:
> lib/proc.c:89:9: error: format not a string literal and no format arguments [-Werror=format-security]
> 89 | if (fscanf(fnetstat, type->header_name) == EOF)
> | ^~
> cc1: some warnings being treated as errors
Here the selftests lib parses header name, while expectes non-space word
ending with a column.
Fixes: cfbab37b3da0 ("selftests/net: Add TCP-AO library")
Signed-off-by: Dmitry Safonov <[email protected]>
Reported-by: Muhammad Usama Anjum <[email protected]>
Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
