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 2018/05/24 11:27:03 UTC
commons-compress git commit: COMPRESS-453 improve exception message
Repository: commons-compress
Updated Branches:
refs/heads/master 6c52485ca -> 4224709bc
COMPRESS-453 improve exception message
Project: http://git-wip-us.apache.org/repos/asf/commons-compress/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-compress/commit/4224709b
Tree: http://git-wip-us.apache.org/repos/asf/commons-compress/tree/4224709b
Diff: http://git-wip-us.apache.org/repos/asf/commons-compress/diff/4224709b
Branch: refs/heads/master
Commit: 4224709bc3aa602135da6aa73c783e0d9d6f6ee8
Parents: 6c52485
Author: Stefan Bodewig <bo...@apache.org>
Authored: Thu May 24 12:51:45 2018 +0200
Committer: Stefan Bodewig <bo...@apache.org>
Committed: Thu May 24 12:51:45 2018 +0200
----------------------------------------------------------------------
.../compress/compressors/bzip2/BZip2CompressorInputStream.java | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/commons-compress/blob/4224709b/src/main/java/org/apache/commons/compress/compressors/bzip2/BZip2CompressorInputStream.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/compress/compressors/bzip2/BZip2CompressorInputStream.java b/src/main/java/org/apache/commons/compress/compressors/bzip2/BZip2CompressorInputStream.java
index 97f6982..a1c3ef6 100644
--- a/src/main/java/org/apache/commons/compress/compressors/bzip2/BZip2CompressorInputStream.java
+++ b/src/main/java/org/apache/commons/compress/compressors/bzip2/BZip2CompressorInputStream.java
@@ -661,11 +661,13 @@ public class BZip2CompressorInputStream extends CompressorInputStream
}
if (lastShadow >= limitLast) {
- throw new IOException("block overrun");
+ throw new IOException("block overrun while expanding RLE in MTF, "
+ + lastShadow + " exceeds " + limitLast);
}
} else {
if (++lastShadow >= limitLast) {
- throw new IOException("block overrun");
+ throw new IOException("block overrun in MTF, "
+ + lastShadow + " exceeds " + limitLast);
}
checkBounds(nextSym, 256 + 1, "nextSym");