ref: 4fa2b548d42b00645f2685e8eb4d572cda18bce7
parent: d8302fc093430a342297caae7ee1906bfa6202b0
author: Gregory Maxwell <[email protected]>
date: Tue Nov 19 03:35:26 EST 2013
Validate merge argument in repacketizer_demo.
--- a/src/repacketizer_demo.c
+++ b/src/repacketizer_demo.c
@@ -81,6 +81,11 @@
fprintf(stderr, "-merge parameter must be at least 1.\n");
return EXIT_FAILURE;
}
+ if(merge>48)
+ {
+ fprintf(stderr, "-merge parameter must be less than 48.\n");
+ return EXIT_FAILURE;
+ }
i++;
} else if (strcmp(argv[i], "-split")==0)
split = 1;