aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/poi
diff options
context:
space:
mode:
authorAndreas Beeker <kiwiwings@apache.org>2016-10-09 20:34:35 +0000
committerAndreas Beeker <kiwiwings@apache.org>2016-10-09 20:34:35 +0000
commit740932ee85c1d465933ebfd306bcc4bc5795f070 (patch)
tree2e1b8426f63feb7b43ee0598537bbd62a673c1e8 /src/java/org/apache/poi
parent3c1f622ecf90a09a38ec70a0b2322798cf56cf90 (diff)
downloadpoi-740932ee85c1d465933ebfd306bcc4bc5795f070.tar.gz
poi-740932ee85c1d465933ebfd306bcc4bc5795f070.zip
Bug 60230 - Roundtrip test that encrypts XSSFWorkbook and then decrypts it fails with latest code
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1764008 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/poi')
-rw-r--r--src/java/org/apache/poi/poifs/crypt/ChunkedCipherInputStream.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/java/org/apache/poi/poifs/crypt/ChunkedCipherInputStream.java b/src/java/org/apache/poi/poifs/crypt/ChunkedCipherInputStream.java
index 8999b6e0dd..1045b3058b 100644
--- a/src/java/org/apache/poi/poifs/crypt/ChunkedCipherInputStream.java
+++ b/src/java/org/apache/poi/poifs/crypt/ChunkedCipherInputStream.java
@@ -199,7 +199,7 @@ public abstract class ChunkedCipherInputStream extends LittleEndianInputStream {
System.arraycopy(_plain, 0, _chunk, 0, totalBytes);
- invokeCipher(totalBytes, _chunkSize > -1);
+ invokeCipher(totalBytes, totalBytes == _chunkSize);
}
/**