projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
exec.c, compat.c: fix count(), compat_count() bounds checking
[cascardo/linux.git]
/
fs
/
compat.c
diff --git
a/fs/compat.c
b/fs/compat.c
index
075d050
..
aae13d3
100644
(file)
--- a/
fs/compat.c
+++ b/
fs/compat.c
@@
-1239,7
+1239,7
@@
static int compat_count(compat_uptr_t __user *argv, int max)
if (!p)
break;
argv++;
- if
(++i >
max)
+ if
(i++ >=
max)
return -E2BIG;
}
}