This fixes the following error messages: xsltApplySequenceConstructor: A potential infinite template recursion was detected. Signed-off-by: Stefan Schantl --- docbook-xsl/docbook-xsl.nm | 2 +- .../765567_non-recursive_string_subst.patch2 | 32 +++++++++++++++++++ 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 docbook-xsl/patches/765567_non-recursive_string_subst.patch2 diff --git a/docbook-xsl/docbook-xsl.nm b/docbook-xsl/docbook-xsl.nm index f3a7a11b2..c1c5caf3c 100644 --- a/docbook-xsl/docbook-xsl.nm +++ b/docbook-xsl/docbook-xsl.nm @@ -5,7 +5,7 @@ name = docbook-xsl version = 1.79.2 -release = 1 +release = 2 arch = noarch groups = Applications/Text diff --git a/docbook-xsl/patches/765567_non-recursive_string_subst.patch2 b/docbook-xsl/patches/765567_non-recursive_string_subst.patch2 new file mode 100644 index 000000000..ae845ad00 --- /dev/null +++ b/docbook-xsl/patches/765567_non-recursive_string_subst.patch2 @@ -0,0 +1,32 @@ +Description: use EXSLT "replace" function when available + A recursive implementation of string.subst is problematic, + long strings with many matches will cause stack overflows. +Author: Peter De Wachter +Bug-Debian: https://bugs.debian.org/750593 + +--- docbook-xsl-1.78.1+dfsg.orig/docbook-xsl/lib/lib.xsl ++++ docbook-xsl-1.78.1+dfsg/docbook-xsl/lib/lib.xsl +@@ -6,7 +6,11 @@ + + This module implements DTD-independent functions + +- ******************************************************************** --> ++ ******************************************************************** --> ++ + + + +@@ -52,6 +56,9 @@ + + + ++ ++ ++ + + + + -- 2.30.2