Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
LU-14688 mdt: changelog purge deletes plain llog
[fs/lustre-release.git]
/
lustre
/
tests
/
create_foreign_file.c
diff --git
a/lustre/tests/create_foreign_file.c
b/lustre/tests/create_foreign_file.c
index
acd5540
..
71caa3e
100644
(file)
--- a/
lustre/tests/create_foreign_file.c
+++ b/
lustre/tests/create_foreign_file.c
@@
-37,8
+37,10
@@
int main(int argc, char **argv)
}
break;
case 'F':
+ errno = 0;
flags = strtoul(optarg, &end, 0);
- if (*end != '\0') {
+ if (errno != 0 || *end != '\0' ||
+ flags >= UINT32_MAX) {
fprintf(stderr,
"%s: invalid flags '%s'\n", argv[0],
optarg);