From 2d43244433ef67cee054826f426da69ab1ebae2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Berenguel?= Date: Fri, 18 Oct 2024 10:12:32 -0300 Subject: [PATCH] #2286: avoid timeout in chat with a lot of messages in UFEDChatParser --- .../src/main/java/iped/parsers/ufed/UFEDChatParser.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/iped-parsers/iped-parsers-impl/src/main/java/iped/parsers/ufed/UFEDChatParser.java b/iped-parsers/iped-parsers-impl/src/main/java/iped/parsers/ufed/UFEDChatParser.java index c1c9d181e6..157a99b22e 100644 --- a/iped-parsers/iped-parsers-impl/src/main/java/iped/parsers/ufed/UFEDChatParser.java +++ b/iped-parsers/iped-parsers-impl/src/main/java/iped/parsers/ufed/UFEDChatParser.java @@ -169,6 +169,10 @@ public void parse(InputStream inputStream, ContentHandler handler, Metadata chat } else { logger.error("Unknown chat child: {}", chatChild); } + + // reset timeout counter + char[] nameChars = (chatChild.getName() + "\n").toCharArray(); + handler.characters(nameChars, 0, nameChars.length); } }