소스 검색

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);