Skip to content

Commit

Permalink
fixed bad input validation
Browse files Browse the repository at this point in the history
  • Loading branch information
davisking committed Jul 4, 2015
1 parent 0b8e2a9 commit 2651bec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/imglab/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
Expand Down

0 comments on commit 2651bec

Please sign in to comment.