hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zs...@apache.org
Subject svn commit: r748404 - in /hadoop/core/branches/branch-0.20: CHANGES.txt src/core/org/apache/hadoop/io/compress/bzip2/CBZip2OutputStream.java
Date Fri, 27 Feb 2009 05:30:55 GMT
Author: zshao
Date: Fri Feb 27 05:30:55 2009
New Revision: 748404

URL: http://svn.apache.org/viewvc?rev=748404&view=rev
Log:
HADOOP-5326. Fixes CBZip2OutputStream data corruption problem. (Rodrigo Schmidt via zshao)

Modified:
    hadoop/core/branches/branch-0.20/CHANGES.txt
    hadoop/core/branches/branch-0.20/src/core/org/apache/hadoop/io/compress/bzip2/CBZip2OutputStream.java

Modified: hadoop/core/branches/branch-0.20/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/core/branches/branch-0.20/CHANGES.txt?rev=748404&r1=748403&r2=748404&view=diff
==============================================================================
--- hadoop/core/branches/branch-0.20/CHANGES.txt (original)
+++ hadoop/core/branches/branch-0.20/CHANGES.txt Fri Feb 27 05:30:55 2009
@@ -343,6 +343,9 @@
 
   BUG FIXES
 
+    HADOOP-5326. Fixes CBZip2OutputStream data corruption problem.
+    (Rodrigo Schmidt via zshao)
+
     HADOOP-4204. Fix findbugs warnings related to unused variables, naive
     Number subclass instantiation, Map iteration, and badly scoped inner
     classes. (Suresh Srinivas via cdouglas)

Modified: hadoop/core/branches/branch-0.20/src/core/org/apache/hadoop/io/compress/bzip2/CBZip2OutputStream.java
URL: http://svn.apache.org/viewvc/hadoop/core/branches/branch-0.20/src/core/org/apache/hadoop/io/compress/bzip2/CBZip2OutputStream.java?rev=748404&r1=748403&r2=748404&view=diff
==============================================================================
--- hadoop/core/branches/branch-0.20/src/core/org/apache/hadoop/io/compress/bzip2/CBZip2OutputStream.java
(original)
+++ hadoop/core/branches/branch-0.20/src/core/org/apache/hadoop/io/compress/bzip2/CBZip2OutputStream.java
Fri Feb 27 05:30:55 2009
@@ -1746,7 +1746,7 @@
     for (int i = 0; i < NUM_OVERSHOOT_BYTES; i++) {
       block[lastShadow + i + 2] = block[(i % (lastShadow + 1)) + 1];
     }
-    for (int i = lastShadow + NUM_OVERSHOOT_BYTES; --i >= 0;) {
+    for (int i = lastShadow + NUM_OVERSHOOT_BYTES +1; --i >= 0;) {
       quadrant[i] = 0;
     }
     block[0] = block[lastShadow + 1];



Mime
View raw message