Browse Source

Bug 63431 -- unbug ChunkedCipherInputStream's read()

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1859251 13f79535-47bb-0310-9956-ffa450edef68
pull/139/head
Tim Allison 5 years ago
parent
commit
0c7afff36a
1 changed files with 1 additions and 2 deletions
  1. 1
    2
      src/java/org/apache/poi/poifs/crypt/ChunkedCipherInputStream.java

+ 1
- 2
src/java/org/apache/poi/poifs/crypt/ChunkedCipherInputStream.java View File

@@ -82,8 +82,7 @@ public abstract class ChunkedCipherInputStream extends LittleEndianInputStream {
@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

Loading…
Cancel
Save