@@ -476,7 +476,6 @@ static void usage(const char *name) {
476476 printf ("\t--noout: do not dump the result\n" );
477477 printf ("\t--maxdepth val : increase the maximum depth (default %d)\n" , xsltMaxDepth );
478478 printf ("\t--maxvars val : increase the maximum variables (default %d)\n" , xsltMaxVars );
479- printf ("\t--maxparserdepth val : increase the maximum parser depth\n" );
480479 printf ("\t--huge: relax any hardcoded limit from the parser\n" );
481480 printf ("\t fixes \"parser error : internal error: Huge input lookup\"\n" );
482481 printf ("\t--seed-rand val : initialize pseudo random number generator with specific seed\n" );
@@ -720,20 +719,6 @@ main(int argc, char **argv)
720719 if (value > 0 )
721720 xsltMaxVars = value ;
722721 }
723- } else if ((!strcmp (argv [i ], "-maxparserdepth" )) ||
724- (!strcmp (argv [i ], "--maxparserdepth" ))) {
725- int value ;
726-
727- i ++ ;
728- if (i == argc ) {
729- fprintf (stderr , "XML maxparserdepth value not specified!\n" );
730- return (2 );
731- }
732-
733- if (sscanf (argv [i ], "%d" , & value ) == 1 ) {
734- if (value > 0 )
735- xmlParserMaxDepth = value ;
736- }
737722 } else if ((!strcmp (argv [i ], "-huge" )) ||
738723 (!strcmp (argv [i ], "--huge" ))) {
739724 options |= XML_PARSE_HUGE ;
@@ -782,10 +767,6 @@ main(int argc, char **argv)
782767 (!strcmp (argv [i ], "--maxvars" ))) {
783768 i ++ ;
784769 continue ;
785- } else if ((!strcmp (argv [i ], "-maxparserdepth" )) ||
786- (!strcmp (argv [i ], "--maxparserdepth" ))) {
787- i ++ ;
788- continue ;
789770 } else if ((!strcmp (argv [i ], "-seed-rand" )) ||
790771 (!strcmp (argv [i ], "--seed-rand" ))) {
791772 i ++ ;
0 commit comments