Skip to content
Snippets Groups Projects
Commit 4fa2b548 authored by Gregory Maxwell's avatar Gregory Maxwell
Browse files

Validate merge argument in repacketizer_demo.

parent d8302fc0
No related branches found
No related tags found
No related merge requests found
...@@ -81,6 +81,11 @@ int main(int argc, char *argv[]) ...@@ -81,6 +81,11 @@ int main(int argc, char *argv[])
fprintf(stderr, "-merge parameter must be at least 1.\n"); fprintf(stderr, "-merge parameter must be at least 1.\n");
return EXIT_FAILURE; return EXIT_FAILURE;
} }
if(merge>48)
{
fprintf(stderr, "-merge parameter must be less than 48.\n");
return EXIT_FAILURE;
}
i++; i++;
} else if (strcmp(argv[i], "-split")==0) } else if (strcmp(argv[i], "-split")==0)
split = 1; split = 1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment