[libxslt] Add --huge Argument via libxml XML_PARSE_HUGE
- From: Nick Wellnhofer <nwellnhof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libxslt] Add --huge Argument via libxml XML_PARSE_HUGE
- Date: Sun, 20 Sep 2020 15:15:29 +0000 (UTC)
commit 1ca66bf406e259bf230e57396b273da91e2c5632
Author: Will Braswell <william braswell autoparallel com>
Date: Sun Aug 23 15:02:32 2020 -0500
Add --huge Argument via libxml XML_PARSE_HUGE
xsltproc/xsltproc.c | 5 +++++
1 file changed, 5 insertions(+)
---
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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]