git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[PATCH] NFS: Ensure ACL xdr code doesn't overflow.
[safe/jmp/linux-2.6]
/
fs
/
nfs_common
/
nfsacl.c
diff --git
a/fs/nfs_common/nfsacl.c
b/fs/nfs_common/nfsacl.c
index
18c58c3
..
251e5a1
100644
(file)
--- a/
fs/nfs_common/nfsacl.c
+++ b/
fs/nfs_common/nfsacl.c
@@
-239,6
+239,7
@@
nfsacl_decode(struct xdr_buf *buf, unsigned int base, unsigned int *aclcnt,
if (xdr_decode_word(buf, base, &entries) ||
entries > NFS_ACL_MAX_ENTRIES)
return -EINVAL;
+ nfsacl_desc.desc.array_maxlen = entries;
err = xdr_decode_array2(buf, base + 4, &nfsacl_desc.desc);
if (err)
return err;