You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by bo...@apache.org on 2021/05/14 16:08:06 UTC
[commons-compress] 01/02: actually, InputStream wants an IIOBE here
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
commit ed32eb968ef124b9c0e19ccdda2c9d60dbfe451e
Author: Stefan Bodewig <st...@innoq.com>
AuthorDate: Fri May 14 18:02:58 2021 +0200
actually, InputStream wants an IIOBE here
---
.../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 4f7ec27..b8e351c 100644
--- a/src/main/java/org/apache/commons/compress/utils/BoundedArchiveInputStream.java
+++ b/src/main/java/org/apache/commons/compress/utils/BoundedArchiveInputStream.java
@@ -71,7 +71,7 @@ public abstract class BoundedArchiveInputStream extends InputStream {
return 0;
}
if (off < 0 || len > b.length - off) {
- throw new IllegalArgumentException("offset or len are out of bounds");
+ throw new IndexOutOfBoundsException("offset or len are out of bounds");
}
if (len > end - loc) {