commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject svn commit: r789597 - in /commons/proper/compress/trunk/src: changes/changes.xml main/java/org/apache/commons/compress/archivers/tar/TarBuffer.java
Date Tue, 30 Jun 2009 07:25:44 GMT
Author: bodewig
Date: Tue Jun 30 07:25:44 2009
New Revision: 789597

URL: http://svn.apache.org/viewvc?rev=789597&view=rev
Log:
clear block after write to avoid garbage in the final block if it isn't full.  COMPRESS-81.
 Merge from Ant.

Modified:
    commons/proper/compress/trunk/src/changes/changes.xml
    commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/tar/TarBuffer.java
  (contents, props changed)

Modified: commons/proper/compress/trunk/src/changes/changes.xml
URL: http://svn.apache.org/viewvc/commons/proper/compress/trunk/src/changes/changes.xml?rev=789597&r1=789596&r2=789597&view=diff
==============================================================================
--- commons/proper/compress/trunk/src/changes/changes.xml (original)
+++ commons/proper/compress/trunk/src/changes/changes.xml Tue Jun 30 07:25:44 2009
@@ -20,11 +20,15 @@
 <document>
   <properties>
     <title>commons-compress</title>
-    <author>Stefan Bodewig</author>
   </properties>
   <body>
-    <release version="1.0" date="as in SVN" description="First Public Release">
-      <action dev="all" type="add">
+    <release version="1.1" date="as in SVN" description="Release 1.1">
+      <action issue="COMPRESS-81" type="fix" date="2009-06-30">
+        TarOutputStream can leave garbage at the end of the archive
+      </action>
+    </release>
+    <release version="1.0" date="2009-05-21" description="First Public Release">
+      <action dev="all" type="add" date="2009-05-21">
         Initial release
       </action>
       <action dev="sgoeschl" type="fix">

Modified: commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/tar/TarBuffer.java
URL: http://svn.apache.org/viewvc/commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/tar/TarBuffer.java?rev=789597&r1=789596&r2=789597&view=diff
==============================================================================
--- commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/tar/TarBuffer.java
(original)
+++ commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/tar/TarBuffer.java
Tue Jun 30 07:25:44 2009
@@ -373,6 +373,7 @@
 
         currRecIdx = 0;
         currBlkIdx++;
+        Arrays.fill(blockBuffer, (byte) 0);
     }
 
     /**

Propchange: commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/tar/TarBuffer.java
------------------------------------------------------------------------------
--- svn:mergeinfo (added)
+++ svn:mergeinfo Tue Jun 30 07:25:44 2009
@@ -0,0 +1 @@
+/ant/core/trunk/src/main/org/apache/tools/tar/TarBuffer.java:741089,789556



Mime
View raw message