git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
This commit was manufactured by cvs2svn to create tag
[linux-2.6.git]
/
net
/
sunrpc
/
svcauth_unix.c
diff --git
a/net/sunrpc/svcauth_unix.c
b/net/sunrpc/svcauth_unix.c
index
2832312
..
fa22061
100644
(file)
--- a/
net/sunrpc/svcauth_unix.c
+++ b/
net/sunrpc/svcauth_unix.c
@@
-172,6
+172,8
@@
static int ip_map_parse(struct cache_detail *cd,
/* class */
len = qword_get(&mesg, ipm.m_class, sizeof(ipm.m_class));
if (len <= 0) return -EINVAL;
+ if (len >= sizeof(ipm.m_class))
+ return -EINVAL;
/* ip address */
len = qword_get(&mesg, buf, mlen);