commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject commons-compress git commit: COMPRESS-453 log lastShadow changes
Date Thu, 24 May 2018 10:15:17 GMT
Repository: commons-compress
Updated Branches:
  refs/heads/COMPRESS-453 e899bcd1a -> 54e90aa4d


COMPRESS-453 log lastShadow changes


Project: http://git-wip-us.apache.org/repos/asf/commons-compress/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-compress/commit/54e90aa4
Tree: http://git-wip-us.apache.org/repos/asf/commons-compress/tree/54e90aa4
Diff: http://git-wip-us.apache.org/repos/asf/commons-compress/diff/54e90aa4

Branch: refs/heads/COMPRESS-453
Commit: 54e90aa4d61468074ae295cc2df8f05a4d074177
Parents: e899bcd
Author: Stefan Bodewig <bodewig@apache.org>
Authored: Thu May 24 12:14:52 2018 +0200
Committer: Stefan Bodewig <bodewig@apache.org>
Committed: Thu May 24 12:14:52 2018 +0200

----------------------------------------------------------------------
 .../compress/compressors/bzip2/BZip2CompressorInputStream.java   | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-compress/blob/54e90aa4/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 ba9cf17..6971a44 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
@@ -616,6 +616,7 @@ public class BZip2CompressorInputStream extends CompressorInputStream
         int minLens_zt = minLens[zt];
 
         while (nextSym != eob) {
+            System.err.println("lastShadow in loop: " + lastShadow);
             if ((nextSym == RUNA) || (nextSym == RUNB)) {
                 int s = -1;
 
@@ -659,10 +660,11 @@ public class BZip2CompressorInputStream extends CompressorInputStream
                 final byte ch = seqToUnseq[yy0];
                 unzftab[ch & 0xff] += s + 1;
 
-                System.err.println("s: " + s);
+                System.err.println("before loop s: " + s + ", lastShadow: " + lastShadow);
                 while (s-- >= 0) {
                     ll8[++lastShadow] = ch;
                 }
+                System.err.println("after loop s: " + s + ", lastShadow: " + lastShadow);
 
                 if (lastShadow >= limitLast) {
                     throw new IOException("block overrun while expanding RLE in MTF, "


Mime
View raw message