aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPJ Fanning <fanningpj@apache.org>2022-02-19 23:02:37 +0000
committerPJ Fanning <fanningpj@apache.org>2022-02-19 23:02:37 +0000
commitfe79513114db04429274755c0b8b6ebb304360b8 (patch)
tree83d9f8a384ab1d9c3791f5cb1c679efd64d631bf
parentac58e2f5f459d305f87ec2323228947877de11ae (diff)
downloadpoi-fe79513114db04429274755c0b8b6ebb304360b8.tar.gz
poi-fe79513114db04429274755c0b8b6ebb304360b8.zip
add extra max size config
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1898240 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--poi-ooxml/src/main/java/org/apache/poi/poifs/crypt/dsig/services/TSPTimeStampService.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/poi-ooxml/src/main/java/org/apache/poi/poifs/crypt/dsig/services/TSPTimeStampService.java b/poi-ooxml/src/main/java/org/apache/poi/poifs/crypt/dsig/services/TSPTimeStampService.java
index 2eb65bef8c..cefe1514d7 100644
--- a/poi-ooxml/src/main/java/org/apache/poi/poifs/crypt/dsig/services/TSPTimeStampService.java
+++ b/poi-ooxml/src/main/java/org/apache/poi/poifs/crypt/dsig/services/TSPTimeStampService.java
@@ -184,7 +184,7 @@ public class TSPTimeStampService implements TimeStampService {
}
try (InputStream stream = huc.getInputStream()) {
- responseBytes = IOUtils.toByteArray(stream, MAX_TIMESTAMP_RESPONSE_SIZE);
+ responseBytes = IOUtils.toByteArrayWithMaxLength(stream, getMaxTimestampResponseSize());
}
LOG.atDebug().log(() -> new SimpleMessage("response content: " + HexDump.dump(responseBytes, 0, 0)));
} finally {