summaryrefslogtreecommitdiffstats
path: root/fs/nfs/dir.c
diff options
context:
space:
mode:
authorTrond Myklebust2013-10-28 23:18:00 +0100
committerTrond Myklebust2013-10-28 23:53:21 +0100
commit9d3a2260f0f4bd6379b0a0f131c743fff25b0029 (patch)
tree52e223ce02fc746865cac4bbce64b433fde53613 /fs/nfs/dir.c
parentSUNRPC: gss_alloc_msg - choose _either_ a v0 message or a v1 message (diff)
downloadkernel-qcow2-linux-9d3a2260f0f4bd6379b0a0f131c743fff25b0029.tar.gz
kernel-qcow2-linux-9d3a2260f0f4bd6379b0a0f131c743fff25b0029.tar.xz
kernel-qcow2-linux-9d3a2260f0f4bd6379b0a0f131c743fff25b0029.zip
SUNRPC: Fix buffer overflow checking in gss_encode_v0_msg/gss_encode_v1_msg
In gss_encode_v1_msg, it is pointless to BUG() after the overflow has happened. Replace the existing sprintf()-based code with scnprintf(), and warn if an overflow is ever triggered. In gss_encode_v0_msg, replace the runtime BUG_ON() with an appropriate compile-time BUILD_BUG_ON. Reported-by: Bruce Fields <bfields@fieldses.org> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/dir.c')
0 files changed, 0 insertions, 0 deletions