mirror of
https://github.com/davisking/dlib.git
synced 2024-11-01 10:14:53 +08:00
fixed bad input validation
This commit is contained in:
parent
0b8e2a99af
commit
2651becf91
@ -523,7 +523,7 @@ int main(int argc, char** argv)
|
||||
const char* convert_args[] = {"pascal-xml","pascal-v1","idl"};
|
||||
parser.check_option_arg_range("convert", convert_args);
|
||||
parser.check_option_arg_range("cluster", 2, 999);
|
||||
parser.check_option_arg_range("rotate", 1, 360);
|
||||
parser.check_option_arg_range("rotate", -360, 360);
|
||||
parser.check_option_arg_range("size", 10*10, 1000*1000);
|
||||
|
||||
if (parser.option("h"))
|
||||
|
Loading…
Reference in New Issue
Block a user