diff options
author | Will Braswell <william.braswell@autoparallel.com> | 2020-08-23 15:02:32 -0500 |
---|---|---|
committer | Nick Wellnhofer <wellnhofer@aevum.de> | 2020-09-20 16:33:22 +0200 |
commit | 1ca66bf406e259bf230e57396b273da91e2c5632 (patch) | |
tree | dc6dda9eca5f477df20e68c80a7231db20491655 | |
parent | 4ccc06b56b8b6d39c29932c92cd1ed82f6698d6f (diff) | |
download | libxslt-1ca66bf406e259bf230e57396b273da91e2c5632.tar.gz |
Add --huge Argument via libxml XML_PARSE_HUGE
-rw-r--r-- | xsltproc/xsltproc.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/xsltproc/xsltproc.c b/xsltproc/xsltproc.c index 92987396..c434e966 100644 --- a/xsltproc/xsltproc.c +++ b/xsltproc/xsltproc.c @@ -513,6 +513,8 @@ static void usage(const char *name) { printf("\t--maxdepth val : increase the maximum depth (default %d)\n", xsltMaxDepth); printf("\t--maxvars val : increase the maximum variables (default %d)\n", xsltMaxVars); printf("\t--maxparserdepth val : increase the maximum parser depth\n"); + printf("\t--huge: relax any hardcoded limit from the parser\n"); + printf("\t fixes \"parser error : internal error: Huge input lookup\"\n"); printf("\t--seed-rand val : initialize pseudo random number generator with specific seed\n"); #ifdef LIBXML_HTML_ENABLED printf("\t--html: the input document is(are) an HTML file(s)\n"); @@ -770,6 +772,9 @@ main(int argc, char **argv) if (value > 0) xmlParserMaxDepth = value; } + } else if ((!strcmp(argv[i], "-huge")) || + (!strcmp(argv[i], "--huge"))) { + options |= XML_PARSE_HUGE; } else if ((!strcmp(argv[i], "-seed-rand")) || (!strcmp(argv[i], "--seed-rand"))) { int value; |