diff options
author | 2023-10-24 23:58:20 +0200 | |
---|---|---|
committer | 2024-02-28 16:18:18 -0500 | |
commit | d6f4de70f73a106986ee315d7d512539f2f3303a (patch) | |
tree | a9288e032c107cbefdc1336ff5ce8a5af34139a6 /tools/perf/scripts/python/syscall-counts-by-pid.py | |
parent | SUNRPC: Add a transport callback to handle dequeuing of an RPC request (diff) | |
download | wireguard-linux-d6f4de70f73a106986ee315d7d512539f2f3303a.tar.xz wireguard-linux-d6f4de70f73a106986ee315d7d512539f2f3303a.zip |
net: sunrpc: Fix an off by one in rpc_sockaddr2uaddr()
The intent is to check if the strings' are truncated or not. So, >= should
be used instead of >, because strlcat() and snprintf() return the length of
the output, excluding the trailing NULL.
Fixes: a02d69261134 ("SUNRPC: Provide functions for managing universal addresses")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Benjamin Coddington <bcodding@redhat.com>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions