Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 5799
b: refs/heads/master
c: 58fcb8d
h: refs/heads/master
i:
  5797: 12fd579
  5795: a35e60a
  5791: a70f423
v: v3
  • Loading branch information
Trond Myklebust authored and Linus Torvalds committed Aug 16, 2005
1 parent fec33f6 commit beb6cfd
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 75cd968ab251ac84dd3a5dc252af7036dc4a64f4
refs/heads/master: 58fcb8df0bf663bb6b8f46cd3010bfe8d13d97cf
1 change: 1 addition & 0 deletions trunk/fs/nfs_common/nfsacl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions trunk/include/linux/sunrpc/xdr.h
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ typedef int (*xdr_xcode_elem_t)(struct xdr_array2_desc *desc, void *elem);
struct xdr_array2_desc {
unsigned int elem_size;
unsigned int array_len;
unsigned int array_maxlen;
xdr_xcode_elem_t xcode;
};

Expand Down
1 change: 1 addition & 0 deletions trunk/net/sunrpc/xdr.c
Original file line number Diff line number Diff line change
Expand Up @@ -993,6 +993,7 @@ xdr_xcode_array2(struct xdr_buf *buf, unsigned int base,
return -EINVAL;
} else {
if (xdr_decode_word(buf, base, &desc->array_len) != 0 ||
desc->array_len > desc->array_maxlen ||
(unsigned long) base + 4 + desc->array_len *
desc->elem_size > buf->len)
return -EINVAL;
Expand Down

0 comments on commit beb6cfd

Please sign in to comment.