]> source.dussan.org Git - poi.git/commitdiff
add extra max size config
authorPJ Fanning <fanningpj@apache.org>
Sat, 19 Feb 2022 23:02:37 +0000 (23:02 +0000)
committerPJ Fanning <fanningpj@apache.org>
Sat, 19 Feb 2022 23:02:37 +0000 (23:02 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1898240 13f79535-47bb-0310-9956-ffa450edef68

poi-ooxml/src/main/java/org/apache/poi/poifs/crypt/dsig/services/TSPTimeStampService.java

index 2eb65bef8cd54e203208f8d6bb1373ccd80561f6..cefe1514d7d89ede2433d8b9d38e96b1bdb50396 100644 (file)
@@ -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 {