ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject svn commit: r789556 - in /ant/core/trunk: WHATSNEW src/main/org/apache/tools/tar/TarBuffer.java
Date Tue, 30 Jun 2009 04:26:57 GMT
Author: bodewig
Date: Tue Jun 30 04:26:56 2009
New Revision: 789556

URL: http://svn.apache.org/viewvc?rev=789556&view=rev
Log:
clear out buffer so the last block is always filled with EOF records.  PR 47421

Modified:
    ant/core/trunk/WHATSNEW
    ant/core/trunk/src/main/org/apache/tools/tar/TarBuffer.java

Modified: ant/core/trunk/WHATSNEW
URL: http://svn.apache.org/viewvc/ant/core/trunk/WHATSNEW?rev=789556&r1=789555&r2=789556&view=diff
==============================================================================
--- ant/core/trunk/WHATSNEW (original)
+++ ant/core/trunk/WHATSNEW Tue Jun 30 04:26:56 2009
@@ -388,6 +388,10 @@
  * <loadproperties>' encoding attribute didn't work.
    Bugzilla Report 47382.
 
+ * Ant created tar archives could contain random bytes at the end
+   which confused some untar implementations.
+   Bugzilla Report 47421.
+
 Other changes:
 --------------
  * A HostInfo task was added performing information on hosts, including info on 

Modified: ant/core/trunk/src/main/org/apache/tools/tar/TarBuffer.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/tar/TarBuffer.java?rev=789556&r1=789555&r2=789556&view=diff
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/tar/TarBuffer.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/tar/TarBuffer.java Tue Jun 30 04:26:56 2009
@@ -412,6 +412,7 @@
 
         currRecIdx = 0;
         currBlkIdx++;
+        Arrays.fill(blockBuffer, (byte) 0);
     }
 
     /**



Mime
View raw message