diff options
author | 2024-12-18 00:13:12 +0800 | |
---|---|---|
committer | 2025-01-13 13:27:25 -0500 | |
commit | 49fd4e34751e90e6df009b70cd0659dc839e7ca8 (patch) | |
tree | c4424b3045aecc4bc5ba27d0a6a6ed75c1d6f323 /net/lapb/lapb_timer.c | |
parent | SUNRPC: display total RPC tasks for RPC client (diff) | |
download | wireguard-linux-49fd4e34751e90e6df009b70cd0659dc839e7ca8.tar.xz wireguard-linux-49fd4e34751e90e6df009b70cd0659dc839e7ca8.zip |
NFS: Fix potential buffer overflowin nfs_sysfs_link_rpc_client()
name is char[64] where the size of clnt->cl_program->name remains
unknown. Invoking strcat() directly will also lead to potential buffer
overflow. Change them to strscpy() and strncat() to fix potential
issues.
Signed-off-by: Zichen Xie <zichenxie0106@gmail.com>
Reviewed-by: Benjamin Coddington <bcodding@redhat.com>
Signed-off-by: Anna Schumaker <anna.schumaker@oracle.com>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions