From 740932ee85c1d465933ebfd306bcc4bc5795f070 Mon Sep 17 00:00:00 2001 From: Andreas Beeker Date: Sun, 9 Oct 2016 20:34:35 +0000 Subject: 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 --- src/java/org/apache/poi/poifs/crypt/ChunkedCipherInputStream.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/java/org/apache/poi') 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); } /** -- cgit v1.2.3