This is an automated email from the ASF dual-hosted git repository. bodewig pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-compress.git
The following commit(s) were added to refs/heads/master by this push: new 8a825f0 really fix single-byte read when nothing has been read 8a825f0 is described below commit 8a825f0c829471a5bac52dcd72bfa854dc1613a3 Author: Stefan Bodewig <stefan.bode...@innoq.com> AuthorDate: Fri May 14 18:11:17 2021 +0200 really fix single-byte read when nothing has been read --- .../org/apache/commons/compress/utils/BoundedArchiveInputStream.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/apache/commons/compress/utils/BoundedArchiveInputStream.java b/src/main/java/org/apache/commons/compress/utils/BoundedArchiveInputStream.java index d685968..c6a5840 100644 --- a/src/main/java/org/apache/commons/compress/utils/BoundedArchiveInputStream.java +++ b/src/main/java/org/apache/commons/compress/utils/BoundedArchiveInputStream.java @@ -59,7 +59,7 @@ public abstract class BoundedArchiveInputStream extends InputStream { } int read = read(loc, singleByteBuffer); if (read < 1) { - return read; + return -1; } loc++; return singleByteBuffer.get() & 0xff;