projects
/
u
/
mdw
/
catacomb
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ab91689
)
mkphrase.c: Better error checking on the length range parameter.
author
Mark Wooding
<mdw@distorted.org.uk>
Mon, 8 Apr 2013 16:09:49 +0000
(17:09 +0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Mon, 8 Apr 2013 16:09:49 +0000
(17:09 +0100)
mkphrase.c
patch
|
blob
|
blame
|
history
diff --git
a/mkphrase.c
b/mkphrase.c
index
0a73e36
..
34ca8cc
100644
(file)
--- a/
mkphrase.c
+++ b/
mkphrase.c
@@
-384,7
+384,7
@@
int main(int argc, char *argv[])
n = nn;
nn = strtoul(p + 1, &p, 0);
}
- if (*p)
+ if (*p
|| min > max
)
die(EXIT_FAILURE, "bad range string `%s'", optarg);
min = n; max = nn;
} break;