You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@poi.apache.org by ta...@apache.org on 2019/05/15 00:56:15 UTC
svn commit: r1859251 -
/poi/trunk/src/java/org/apache/poi/poifs/crypt/ChunkedCipherInputStream.java
Author: tallison
Date: Wed May 15 00:56:15 2019
New Revision: 1859251
URL: http://svn.apache.org/viewvc?rev=1859251&view=rev
Log:
Bug 63431 -- unbug ChunkedCipherInputStream's read()
Modified:
poi/trunk/src/java/org/apache/poi/poifs/crypt/ChunkedCipherInputStream.java
Modified: poi/trunk/src/java/org/apache/poi/poifs/crypt/ChunkedCipherInputStream.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/java/org/apache/poi/poifs/crypt/ChunkedCipherInputStream.java?rev=1859251&r1=1859250&r2=1859251&view=diff
==============================================================================
--- poi/trunk/src/java/org/apache/poi/poifs/crypt/ChunkedCipherInputStream.java (original)
+++ poi/trunk/src/java/org/apache/poi/poifs/crypt/ChunkedCipherInputStream.java Wed May 15 00:56:15 2019
@@ -82,8 +82,7 @@ public abstract class ChunkedCipherInput
@Override
public int read() throws IOException {
byte[] b = { 0 };
- // FIXME: compare against -1 or 1? (bug 59893)
- return (read(b) == 1) ? -1 : b[0];
+ return (read(b) == 1) ? b[0] : -1;
}
// do not implement! -> recursion
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org