From patchwork Sun Feb 26 13:28:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Schantl X-Patchwork-Id: 6626 Return-Path: Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4PPkwy5Q6bz3wjy for ; Sun, 26 Feb 2023 13:28:50 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail02.haj.ipfire.org", Issuer "R3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4PPkww16N5zdk; Sun, 26 Feb 2023 13:28:48 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4PPkwv6SrMz2xxv; Sun, 26 Feb 2023 13:28:47 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4PPkwt2tHQz2x9t for ; Sun, 26 Feb 2023 13:28:46 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id 4PPkws3myNz91; Sun, 26 Feb 2023 13:28:45 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1677418125; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=c8SBujkkrnXx+Yu8ff7F3imlVvPGQnGG9YSbOqLnLpc=; b=A3VeqppUYIYxbbzPZbQt6ZmFVxz/jGUqHi8J6rO7bmvuOrhULDPPH04agsbKnuGTJJEI4O 6Mar5RIdJAQFo6DA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1677418125; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=c8SBujkkrnXx+Yu8ff7F3imlVvPGQnGG9YSbOqLnLpc=; b=YUmHnWsrmMLaP1YxUc5nktuk7IWbGAbw887lKw2JopIZQafT3h0MwFRgt3F4K21LBiZPAZ dNbMDzi+x8/I0h6RQu927iUayMf5wFYQOBcHggKcIfdOthPPl+f5YUjW3nUW1YVbhRWNTt osD3HcVfbIIRbM9cd5kg7YgQa378B/P5yyRKag/g14G5pMf87Nwyi3QW1K2CpshnX4+idf prq4qUi4lgg26wgOlKuLYQNXo2yJoyZqVwBMW+/bvCRh7veNZAsIn17oDDNVrfhipUp2Gu AMDxQp7+ahO2D5sCt0sh17VuNXpz9KOKSsCS/jZ51D3OIq3JrdYBIwRJdpQg7w== 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 X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: IPFire development talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: development-bounces@lists.ipfire.org Sender: "Development" 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 @@ + + + ++ ++ ++ + + + +