浏览代码

HPCC-10691 Increase libxslt template stack depth

This only affects distributions that use libxslt rather than xalan-c
for xslt processing.

This somewhat arbitrary check to prevent infinite recursion is set
too low by default for the highly recursive way the tabular result xslt
is currently written.

Increasing the limit should have no effect on stylesheets that do not
currently hit the limit.

Signed-off-by: Anthony Fishbeck <anthony.fishbeck@lexisnexis.com>
Anthony Fishbeck 11 年之前
父节点
当前提交
8d93b182e6
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      system/xmllib/libxslt_processor.cpp

+ 1 - 1
system/xmllib/libxslt_processor.cpp

@@ -698,7 +698,7 @@ CLibXslProcessor::CLibXslProcessor()
     xmlSubstituteEntitiesDefault(1);
     xmlThrDefSaveNoEmptyTags(1);
     xmlLoadExtDtdDefaultValue = 1;
-
+    xsltMaxDepth = 20000;
     xsltSetLoaderFunc(NULL);
     originalLibXsltIncludeHandler = xsltDocDefaultLoader;
     xsltSetLoaderFunc(globalLibXsltIncludeHandler);