From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Schantl To: development@lists.ipfire.org Subject: [PATCH] docbook-xsl: Add patch to fix problematic recursed strings. Date: Sun, 26 Feb 2023 14:28:38 +0100 Message-ID: <20230226132838.380708-1-stefan.schantl@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1879173449313758984==" List-Id: --===============1879173449313758984== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable This fixes the following error messages: xsltApplySequenceConstructor: A potential infinite template recursion was det= ected. 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.pat= ch2 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 @@ =20 name =3D docbook-xsl version =3D 1.79.2 -release =3D 1 +release =3D 2 arch =3D noarch =20 groups =3D Applications/Text diff --git a/docbook-xsl/patches/765567_non-recursive_string_subst.patch2 b/d= ocbook-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 @@ +=20 + This module implements DTD-independent functions +=20 +- ******************************************************************** -= -> ++ ******************************************************************** -= -> ++ +=20 + + +@@ -52,6 +56,9 @@ + +=20 + ++ ++ ++ + + + + --=20 2.30.2 --===============1879173449313758984==--