diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2023-10-25 00:58:20 +0300 |
---|---|---|
committer | Sasha Levin <sashal@kernel.org> | 2024-03-27 01:17:24 +0300 |
commit | d1eea96246177120bd0632d40703187e6840815b (patch) | |
tree | d3dd1ab5b6ba7762f25c752e31488da20a30ae32 /fs/nfs | |
parent | bdb95f87a7f880eeda7e5380ce6af86dff93ad03 (diff) | |
download | linux-d1eea96246177120bd0632d40703187e6840815b.tar.xz |
net: sunrpc: Fix an off by one in rpc_sockaddr2uaddr()
[ Upstream commit d6f4de70f73a106986ee315d7d512539f2f3303a ]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'fs/nfs')
0 files changed, 0 insertions, 0 deletions