Commit 2651becf authored by Davis King's avatar Davis King

fixed bad input validation

parent 0b8e2a99
...@@ -523,7 +523,7 @@ int main(int argc, char** argv) ...@@ -523,7 +523,7 @@ int main(int argc, char** argv)
const char* convert_args[] = {"pascal-xml","pascal-v1","idl"}; const char* convert_args[] = {"pascal-xml","pascal-v1","idl"};
parser.check_option_arg_range("convert", convert_args); parser.check_option_arg_range("convert", convert_args);
parser.check_option_arg_range("cluster", 2, 999); 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); parser.check_option_arg_range("size", 10*10, 1000*1000);
if (parser.option("h")) if (parser.option("h"))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment