mirror of https://github.com/BOINC/boinc.git
sanitize nrequests option
fixes CID 27924 found by Coverity
This commit is contained in:
parent
28e3c3740c
commit
f27d676a14
|
@ -164,6 +164,8 @@ int main(int argc, char** argv) {
|
|||
exit(1);
|
||||
}
|
||||
nrequests = atoi(argv[i]);
|
||||
if (nrequests < 0) nrequests = 0;
|
||||
if (nrequests > 10000000) nrequests = 10000000;
|
||||
}
|
||||
else if (!strcmp(argv[i], "--reqs_per_second")) {
|
||||
if (!argv[++i]) {
|
||||
|
|
Loading…
Reference in New Issue