From c32699c5b01425950b094fcae7fa42a9a0ea1117 Mon Sep 17 00:00:00 2001 From: Dominik Stadler Date: Mon, 18 Sep 2023 18:25:56 +0000 Subject: [PATCH] Adjust max recursion nesting Otherwise this still triggered StackOverflow on some version of JDK git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1912403 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/poi/hwpf/converter/WordToTextConverter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poi-scratchpad/src/main/java/org/apache/poi/hwpf/converter/WordToTextConverter.java b/poi-scratchpad/src/main/java/org/apache/poi/hwpf/converter/WordToTextConverter.java index 8cb7579621..2c061e0960 100644 --- a/poi-scratchpad/src/main/java/org/apache/poi/hwpf/converter/WordToTextConverter.java +++ b/poi-scratchpad/src/main/java/org/apache/poi/hwpf/converter/WordToTextConverter.java @@ -54,7 +54,7 @@ import org.w3c.dom.Element; public class WordToTextConverter extends AbstractWordConverter { private static final Logger LOG = LogManager.getLogger(WordToTextConverter.class); - private static final int MAX_NESTED_CHILD_NODES = 500; + private static final int MAX_NESTED_CHILD_NODES = 400; public static String getText( DirectoryNode root ) throws Exception {