Update IO-Compress to CPAN version 2.043
authorChris 'BinGOs' Williams <chris@bingosnet.co.uk>
Tue, 22 Nov 2011 19:32:55 +0000 (19:32 +0000)
committerChris 'BinGOs' Williams <chris@bingosnet.co.uk>
Tue, 22 Nov 2011 19:32:55 +0000 (19:32 +0000)
  [DELTA]

  2.043 20 November 2011

      * IO::Compress::Base
        - Fixed issue that with handling of Zip files with two (or more)
          entries that were STORED. Symptom is the first is uncompressed
          ok, but the next will terminate early if the size of the file is
          greater than BlockSize.
          Regression test added to t/006zip.t
          [RT# 72548]

33 files changed:
Porting/Maintainers.pl
cpan/IO-Compress/Changes
cpan/IO-Compress/Makefile.PL
cpan/IO-Compress/README
cpan/IO-Compress/lib/Compress/Zlib.pm
cpan/IO-Compress/lib/IO/Compress/Adapter/Bzip2.pm
cpan/IO-Compress/lib/IO/Compress/Adapter/Deflate.pm
cpan/IO-Compress/lib/IO/Compress/Adapter/Identity.pm
cpan/IO-Compress/lib/IO/Compress/Base.pm
cpan/IO-Compress/lib/IO/Compress/Base/Common.pm
cpan/IO-Compress/lib/IO/Compress/Bzip2.pm
cpan/IO-Compress/lib/IO/Compress/Deflate.pm
cpan/IO-Compress/lib/IO/Compress/Gzip.pm
cpan/IO-Compress/lib/IO/Compress/Gzip/Constants.pm
cpan/IO-Compress/lib/IO/Compress/RawDeflate.pm
cpan/IO-Compress/lib/IO/Compress/Zip.pm
cpan/IO-Compress/lib/IO/Compress/Zip/Constants.pm
cpan/IO-Compress/lib/IO/Compress/Zlib/Constants.pm
cpan/IO-Compress/lib/IO/Compress/Zlib/Extra.pm
cpan/IO-Compress/lib/IO/Uncompress/Adapter/Bunzip2.pm
cpan/IO-Compress/lib/IO/Uncompress/Adapter/Identity.pm
cpan/IO-Compress/lib/IO/Uncompress/Adapter/Inflate.pm
cpan/IO-Compress/lib/IO/Uncompress/AnyInflate.pm
cpan/IO-Compress/lib/IO/Uncompress/AnyUncompress.pm
cpan/IO-Compress/lib/IO/Uncompress/Base.pm
cpan/IO-Compress/lib/IO/Uncompress/Bunzip2.pm
cpan/IO-Compress/lib/IO/Uncompress/Gunzip.pm
cpan/IO-Compress/lib/IO/Uncompress/Inflate.pm
cpan/IO-Compress/lib/IO/Uncompress/RawInflate.pm
cpan/IO-Compress/lib/IO/Uncompress/Unzip.pm
cpan/IO-Compress/t/000prereq.t
cpan/IO-Compress/t/006zip.t
pod/perldelta.pod

index b80bb84..eb1abba 100755 (executable)
@@ -1034,7 +1034,7 @@ use File::Glob qw(:case);
     'IO-Compress' =>
        {
        'MAINTAINER'    => 'pmqs',
-       'DISTRIBUTION'  => 'PMQS/IO-Compress-2.042.tar.gz',
+       'DISTRIBUTION'  => 'PMQS/IO-Compress-2.043.tar.gz',
        'FILES'         => q[cpan/IO-Compress],
        'EXCLUDED'      => [ qr{t/Test/} ],
        'UPSTREAM'      => 'cpan',
index 1f0e5b4..9f2d070 100644 (file)
@@ -1,6 +1,16 @@
 CHANGES
 -------
 
+  2.043 20 November 2011
+
+      * IO::Compress::Base
+        - Fixed issue that with handling of Zip files with two (or more) 
+          entries that were STORED. Symptom is the first is uncompressed
+          ok, but the next will terminate early if the size of the file is
+          greater than BlockSize.
+          Regression test added to t/006zip.t
+          [RT# 72548]
+
   2.042 17 November 2011
 
       * IO::Compress::Zip
index b8725a3..bfe40a5 100644 (file)
@@ -3,7 +3,7 @@
 use strict ;
 require 5.004 ;
 
-$::VERSION = '2.042' ;
+$::VERSION = '2.043' ;
 
 use private::MakeUtil;
 use ExtUtils::MakeMaker 5.16 ;
index 368234d..b1090dc 100644 (file)
@@ -1,9 +1,9 @@
 
                              IO-Compress
 
-                             Version 2.042
+                             Version 2.043
 
-                            17th November 2011
+                            20th November 2011
 
        Copyright (c) 1995-2011 Paul Marquess. All rights reserved.
           This program is free software; you can redistribute it
@@ -89,7 +89,7 @@ To help me help you, I need all of the following information:
         If you haven't installed IO-Compress then search IO::Compress::Gzip.pm
         for a line like this:
 
-          $VERSION = "2.042" ;
+          $VERSION = "2.043" ;
 
  2. If you are having problems building IO-Compress, send me a
     complete log of what happened. Start by unpacking the IO-Compress
index 212c6e0..2fb2b6a 100644 (file)
@@ -7,17 +7,17 @@ use Carp ;
 use IO::Handle ;
 use Scalar::Util qw(dualvar);
 
-use IO::Compress::Base::Common 2.042 ;
-use Compress::Raw::Zlib 2.042 ;
-use IO::Compress::Gzip 2.042 ;
-use IO::Uncompress::Gunzip 2.042 ;
+use IO::Compress::Base::Common 2.043 ;
+use Compress::Raw::Zlib 2.043 ;
+use IO::Compress::Gzip 2.043 ;
+use IO::Uncompress::Gunzip 2.043 ;
 
 use strict ;
 use warnings ;
 use bytes ;
 our ($VERSION, $XS_VERSION, @ISA, @EXPORT, @EXPORT_OK, %EXPORT_TAGS);
 
-$VERSION = '2.042';
+$VERSION = '2.043';
 $XS_VERSION = $VERSION; 
 $VERSION = eval $VERSION;
 
@@ -453,7 +453,7 @@ sub inflate
 
 package Compress::Zlib ;
 
-use IO::Compress::Gzip::Constants 2.042 ;
+use IO::Compress::Gzip::Constants 2.043 ;
 
 sub memGzip($)
 {
index c2d3e13..00bae00 100644 (file)
@@ -4,13 +4,13 @@ use strict;
 use warnings;
 use bytes;
 
-use IO::Compress::Base::Common  2.042 qw(:Status);
+use IO::Compress::Base::Common  2.043 qw(:Status);
 
 #use Compress::Bzip2 ;
-use Compress::Raw::Bzip2  2.042 ;
+use Compress::Raw::Bzip2  2.043 ;
 
 our ($VERSION);
-$VERSION = '2.042';
+$VERSION = '2.043';
 
 sub mkCompObject
 {
index 74dead0..60c7790 100644 (file)
@@ -4,12 +4,12 @@ use strict;
 use warnings;
 use bytes;
 
-use IO::Compress::Base::Common  2.042 qw(:Status);
+use IO::Compress::Base::Common  2.043 qw(:Status);
 
-use Compress::Raw::Zlib  2.042 qw(Z_OK Z_FINISH MAX_WBITS) ;
+use Compress::Raw::Zlib  2.043 qw(Z_OK Z_FINISH MAX_WBITS) ;
 our ($VERSION);
 
-$VERSION = '2.042';
+$VERSION = '2.043';
 
 sub mkCompObject
 {
index 8a97740..7aebede 100644 (file)
@@ -4,10 +4,10 @@ use strict;
 use warnings;
 use bytes;
 
-use IO::Compress::Base::Common  2.042 qw(:Status);
+use IO::Compress::Base::Common  2.043 qw(:Status);
 our ($VERSION);
 
-$VERSION = '2.042';
+$VERSION = '2.043';
 
 sub mkCompObject
 {
index 464f401..cac7610 100644 (file)
@@ -6,7 +6,7 @@ require 5.004 ;
 use strict ;
 use warnings;
 
-use IO::Compress::Base::Common 2.042 ;
+use IO::Compress::Base::Common 2.043 ;
 
 use IO::File qw(SEEK_SET SEEK_END); ;
 use Scalar::Util qw(blessed readonly);
@@ -20,7 +20,7 @@ use bytes;
 our (@ISA, $VERSION);
 @ISA    = qw(Exporter IO::File);
 
-$VERSION = '2.042';
+$VERSION = '2.043';
 
 #Can't locate object method "SWASHNEW" via package "utf8" (perhaps you forgot to load "utf8"?) at .../ext/Compress-Zlib/Gzip/blib/lib/Compress/Zlib/Common.pm line 16.
 
index 5778d4f..4113304 100644 (file)
@@ -11,7 +11,7 @@ use File::GlobMapper;
 require Exporter;
 our ($VERSION, @ISA, @EXPORT, %EXPORT_TAGS, $HAS_ENCODE);
 @ISA = qw(Exporter);
-$VERSION = '2.042';
+$VERSION = '2.043';
 
 @EXPORT = qw( isaFilehandle isaFilename whatIsInput whatIsOutput 
               isaFileGlobString cleanFileGlobString oneTarget
index f676787..5211bef 100644 (file)
@@ -5,16 +5,16 @@ use warnings;
 use bytes;
 require Exporter ;
 
-use IO::Compress::Base 2.042 ;
+use IO::Compress::Base 2.043 ;
 
-use IO::Compress::Base::Common  2.042 qw(createSelfTiedObject);
-use IO::Compress::Adapter::Bzip2 2.042 ;
+use IO::Compress::Base::Common  2.043 qw(createSelfTiedObject);
+use IO::Compress::Adapter::Bzip2 2.043 ;
 
 
 
 our ($VERSION, @ISA, @EXPORT_OK, %EXPORT_TAGS, $Bzip2Error);
 
-$VERSION = '2.042';
+$VERSION = '2.043';
 $Bzip2Error = '';
 
 @ISA    = qw(Exporter IO::Compress::Base);
@@ -51,7 +51,7 @@ sub getExtraParams
 {
     my $self = shift ;
 
-    use IO::Compress::Base::Common  2.042 qw(:Parse);
+    use IO::Compress::Base::Common  2.043 qw(:Parse);
     
     return (
             'BlockSize100K' => [0, 1, Parse_unsigned,  1],
index c8b8f5e..1d241d7 100644 (file)
@@ -6,16 +6,16 @@ use bytes;
 
 require Exporter ;
 
-use IO::Compress::RawDeflate 2.042 ;
+use IO::Compress::RawDeflate 2.043 ;
 
-use Compress::Raw::Zlib  2.042 ;
-use IO::Compress::Zlib::Constants 2.042 ;
-use IO::Compress::Base::Common  2.042 qw(createSelfTiedObject);
+use Compress::Raw::Zlib  2.043 ;
+use IO::Compress::Zlib::Constants 2.043 ;
+use IO::Compress::Base::Common  2.043 qw(createSelfTiedObject);
 
 
 our ($VERSION, @ISA, @EXPORT_OK, %EXPORT_TAGS, $DeflateError);
 
-$VERSION = '2.042';
+$VERSION = '2.043';
 $DeflateError = '';
 
 @ISA    = qw(Exporter IO::Compress::RawDeflate);
index b9d3149..fbc6758 100644 (file)
@@ -8,12 +8,12 @@ use warnings;
 use bytes;
 
 
-use IO::Compress::RawDeflate 2.042 ;
+use IO::Compress::RawDeflate 2.043 ;
 
-use Compress::Raw::Zlib  2.042 ;
-use IO::Compress::Base::Common  2.042 qw(:Status :Parse createSelfTiedObject);
-use IO::Compress::Gzip::Constants 2.042 ;
-use IO::Compress::Zlib::Extra 2.042 ;
+use Compress::Raw::Zlib  2.043 ;
+use IO::Compress::Base::Common  2.043 qw(:Status :Parse createSelfTiedObject);
+use IO::Compress::Gzip::Constants 2.043 ;
+use IO::Compress::Zlib::Extra 2.043 ;
 
 BEGIN
 {
@@ -27,7 +27,7 @@ require Exporter ;
 
 our ($VERSION, @ISA, @EXPORT_OK, %EXPORT_TAGS, $GzipError);
 
-$VERSION = '2.042';
+$VERSION = '2.043';
 $GzipError = '' ;
 
 @ISA    = qw(Exporter IO::Compress::RawDeflate);
index 6e87905..8c78868 100644 (file)
@@ -9,7 +9,7 @@ require Exporter;
 our ($VERSION, @ISA, @EXPORT, %GZIP_OS_Names);
 our ($GZIP_FNAME_INVALID_CHAR_RE, $GZIP_FCOMMENT_INVALID_CHAR_RE);
 
-$VERSION = '2.042';
+$VERSION = '2.043';
 
 @ISA = qw(Exporter);
 
index 5d3a029..a316eb6 100644 (file)
@@ -7,16 +7,16 @@ use warnings;
 use bytes;
 
 
-use IO::Compress::Base 2.042 ;
-use IO::Compress::Base::Common  2.042 qw(:Status createSelfTiedObject);
-use IO::Compress::Adapter::Deflate  2.042 ;
+use IO::Compress::Base 2.043 ;
+use IO::Compress::Base::Common  2.043 qw(:Status createSelfTiedObject);
+use IO::Compress::Adapter::Deflate  2.043 ;
 
 require Exporter ;
 
 
 our ($VERSION, @ISA, @EXPORT_OK, %DEFLATE_CONSTANTS, %EXPORT_TAGS, $RawDeflateError);
 
-$VERSION = '2.042';
+$VERSION = '2.043';
 $RawDeflateError = '';
 
 @ISA = qw(Exporter IO::Compress::Base);
@@ -142,8 +142,8 @@ sub getZlibParams
 {
     my $self = shift ;
 
-    use IO::Compress::Base::Common  2.042 qw(:Parse);
-    use Compress::Raw::Zlib  2.042 qw(Z_DEFLATED Z_DEFAULT_COMPRESSION Z_DEFAULT_STRATEGY);
+    use IO::Compress::Base::Common  2.043 qw(:Parse);
+    use Compress::Raw::Zlib  2.043 qw(Z_DEFLATED Z_DEFAULT_COMPRESSION Z_DEFAULT_STRATEGY);
 
     
     return (
index dc36a5d..77630d8 100644 (file)
@@ -4,28 +4,28 @@ use strict ;
 use warnings;
 use bytes;
 
-use IO::Compress::Base::Common  2.042 qw(:Status createSelfTiedObject);
-use IO::Compress::RawDeflate 2.042 ;
-use IO::Compress::Adapter::Deflate 2.042 ;
-use IO::Compress::Adapter::Identity 2.042 ;
-use IO::Compress::Zlib::Extra 2.042 ;
-use IO::Compress::Zip::Constants 2.042 ;
+use IO::Compress::Base::Common  2.043 qw(:Status createSelfTiedObject);
+use IO::Compress::RawDeflate 2.043 ;
+use IO::Compress::Adapter::Deflate 2.043 ;
+use IO::Compress::Adapter::Identity 2.043 ;
+use IO::Compress::Zlib::Extra 2.043 ;
+use IO::Compress::Zip::Constants 2.043 ;
 
 use File::Spec();
 use Config;
 
-use Compress::Raw::Zlib  2.042 qw(crc32) ;
+use Compress::Raw::Zlib  2.043 qw(crc32) ;
 BEGIN
 {
     eval { require IO::Compress::Adapter::Bzip2 ; 
-           import  IO::Compress::Adapter::Bzip2 2.042 ; 
+           import  IO::Compress::Adapter::Bzip2 2.043 ; 
            require IO::Compress::Bzip2 ; 
-           import  IO::Compress::Bzip2 2.042 ; 
+           import  IO::Compress::Bzip2 2.043 ; 
          } ;
     eval { require IO::Compress::Adapter::Lzma ; 
-           import  IO::Compress::Adapter::Lzma 2.042 ; 
+           import  IO::Compress::Adapter::Lzma 2.043 ; 
            require IO::Compress::Lzma ; 
-           import  IO::Compress::Lzma 2.042 ; 
+           import  IO::Compress::Lzma 2.043 ; 
          } ;
 }
 
@@ -34,7 +34,7 @@ require Exporter ;
 
 our ($VERSION, @ISA, @EXPORT_OK, %EXPORT_TAGS, $ZipError);
 
-$VERSION = '2.042';
+$VERSION = '2.043';
 $ZipError = '';
 
 @ISA = qw(Exporter IO::Compress::RawDeflate);
@@ -641,8 +641,8 @@ sub getExtraParams
 {
     my $self = shift ;
 
-    use IO::Compress::Base::Common  2.042 qw(:Parse);
-    use Compress::Raw::Zlib  2.042 qw(Z_DEFLATED Z_DEFAULT_COMPRESSION Z_DEFAULT_STRATEGY);
+    use IO::Compress::Base::Common  2.043 qw(:Parse);
+    use Compress::Raw::Zlib  2.043 qw(Z_DEFLATED Z_DEFAULT_COMPRESSION Z_DEFAULT_STRATEGY);
 
     my @Bzip2 = ();
     
index bdeb22e..c9ed783 100644 (file)
@@ -7,7 +7,7 @@ require Exporter;
 
 our ($VERSION, @ISA, @EXPORT, %ZIP_CM_MIN_VERSIONS);
 
-$VERSION = '2.042';
+$VERSION = '2.043';
 
 @ISA = qw(Exporter);
 
index be81dab..55c65c3 100644 (file)
@@ -9,7 +9,7 @@ require Exporter;
 
 our ($VERSION, @ISA, @EXPORT);
 
-$VERSION = '2.042';
+$VERSION = '2.043';
 
 @ISA = qw(Exporter);
 
index 218a0d1..a689536 100644 (file)
@@ -8,9 +8,9 @@ use bytes;
 
 our ($VERSION, @ISA, @EXPORT_OK, %EXPORT_TAGS);
 
-$VERSION = '2.042';
+$VERSION = '2.043';
 
-use IO::Compress::Gzip::Constants 2.042 ;
+use IO::Compress::Gzip::Constants 2.043 ;
 
 sub ExtraFieldError
 {
index 4a00fe2..68796b4 100644 (file)
@@ -4,12 +4,12 @@ use strict;
 use warnings;
 use bytes;
 
-use IO::Compress::Base::Common 2.042 qw(:Status);
+use IO::Compress::Base::Common 2.043 qw(:Status);
 
-use Compress::Raw::Bzip2 2.042 ;
+use Compress::Raw::Bzip2 2.043 ;
 
 our ($VERSION, @ISA);
-$VERSION = '2.042';
+$VERSION = '2.043';
 
 sub mkUncompObject
 {
index 7d14534..a730ea3 100644 (file)
@@ -4,14 +4,14 @@ use warnings;
 use strict;
 use bytes;
 
-use IO::Compress::Base::Common  2.042 qw(:Status);
+use IO::Compress::Base::Common  2.043 qw(:Status);
 use IO::Compress::Zip::Constants ;
 
 our ($VERSION);
 
-$VERSION = '2.042';
+$VERSION = '2.043';
 
-use Compress::Raw::Zlib  2.042 ();
+use Compress::Raw::Zlib  2.043 ();
 
 sub mkUncompObject
 {
index bd28bf4..09d8c51 100644 (file)
@@ -4,11 +4,11 @@ use strict;
 use warnings;
 use bytes;
 
-use IO::Compress::Base::Common  2.042 qw(:Status);
-use Compress::Raw::Zlib  2.042 qw(Z_OK Z_BUF_ERROR Z_STREAM_END Z_FINISH MAX_WBITS);
+use IO::Compress::Base::Common  2.043 qw(:Status);
+use Compress::Raw::Zlib  2.043 qw(Z_OK Z_BUF_ERROR Z_STREAM_END Z_FINISH MAX_WBITS);
 
 our ($VERSION);
-$VERSION = '2.042';
+$VERSION = '2.043';
 
 
 
index 54e5733..0522bd7 100644 (file)
@@ -6,22 +6,22 @@ use strict;
 use warnings;
 use bytes;
 
-use IO::Compress::Base::Common  2.042 qw(createSelfTiedObject);
+use IO::Compress::Base::Common  2.043 qw(createSelfTiedObject);
 
-use IO::Uncompress::Adapter::Inflate  2.042 ();
+use IO::Uncompress::Adapter::Inflate  2.043 ();
 
 
-use IO::Uncompress::Base  2.042 ;
-use IO::Uncompress::Gunzip  2.042 ;
-use IO::Uncompress::Inflate  2.042 ;
-use IO::Uncompress::RawInflate  2.042 ;
-use IO::Uncompress::Unzip  2.042 ;
+use IO::Uncompress::Base  2.043 ;
+use IO::Uncompress::Gunzip  2.043 ;
+use IO::Uncompress::Inflate  2.043 ;
+use IO::Uncompress::RawInflate  2.043 ;
+use IO::Uncompress::Unzip  2.043 ;
 
 require Exporter ;
 
 our ($VERSION, @ISA, @EXPORT_OK, %EXPORT_TAGS, $AnyInflateError);
 
-$VERSION = '2.042';
+$VERSION = '2.043';
 $AnyInflateError = '';
 
 @ISA = qw( Exporter IO::Uncompress::Base );
@@ -48,7 +48,7 @@ sub anyinflate
 
 sub getExtraParams
 {
-    use IO::Compress::Base::Common  2.042 qw(:Parse);
+    use IO::Compress::Base::Common  2.043 qw(:Parse);
     return ( 'RawInflate' => [1, 1, Parse_boolean,  0] ) ;
 }
 
index 979f892..acb5fa8 100644 (file)
@@ -4,16 +4,16 @@ use strict;
 use warnings;
 use bytes;
 
-use IO::Compress::Base::Common 2.042 qw(createSelfTiedObject);
+use IO::Compress::Base::Common 2.043 qw(createSelfTiedObject);
 
-use IO::Uncompress::Base 2.042 ;
+use IO::Uncompress::Base 2.043 ;
 
 
 require Exporter ;
 
 our ($VERSION, @ISA, @EXPORT_OK, %EXPORT_TAGS, $AnyUncompressError);
 
-$VERSION = '2.042';
+$VERSION = '2.043';
 $AnyUncompressError = '';
 
 @ISA = qw( Exporter IO::Uncompress::Base );
@@ -27,22 +27,22 @@ Exporter::export_ok_tags('all');
 
 BEGIN
 {
-   eval ' use IO::Uncompress::Adapter::Inflate 2.042 ;';
-   eval ' use IO::Uncompress::Adapter::Bunzip2 2.042 ;';
-   eval ' use IO::Uncompress::Adapter::LZO 2.042 ;';
-   eval ' use IO::Uncompress::Adapter::Lzf 2.042 ;';
-   eval ' use IO::Uncompress::Adapter::UnLzma 2.042 ;';
-   eval ' use IO::Uncompress::Adapter::UnXz 2.042 ;';
-
-   eval ' use IO::Uncompress::Bunzip2 2.042 ;';
-   eval ' use IO::Uncompress::UnLzop 2.042 ;';
-   eval ' use IO::Uncompress::Gunzip 2.042 ;';
-   eval ' use IO::Uncompress::Inflate 2.042 ;';
-   eval ' use IO::Uncompress::RawInflate 2.042 ;';
-   eval ' use IO::Uncompress::Unzip 2.042 ;';
-   eval ' use IO::Uncompress::UnLzf 2.042 ;';
-   eval ' use IO::Uncompress::UnLzma 2.042 ;';
-   eval ' use IO::Uncompress::UnXz 2.042 ;';
+   eval ' use IO::Uncompress::Adapter::Inflate 2.043 ;';
+   eval ' use IO::Uncompress::Adapter::Bunzip2 2.043 ;';
+   eval ' use IO::Uncompress::Adapter::LZO 2.043 ;';
+   eval ' use IO::Uncompress::Adapter::Lzf 2.043 ;';
+   eval ' use IO::Uncompress::Adapter::UnLzma 2.043 ;';
+   eval ' use IO::Uncompress::Adapter::UnXz 2.043 ;';
+
+   eval ' use IO::Uncompress::Bunzip2 2.043 ;';
+   eval ' use IO::Uncompress::UnLzop 2.043 ;';
+   eval ' use IO::Uncompress::Gunzip 2.043 ;';
+   eval ' use IO::Uncompress::Inflate 2.043 ;';
+   eval ' use IO::Uncompress::RawInflate 2.043 ;';
+   eval ' use IO::Uncompress::Unzip 2.043 ;';
+   eval ' use IO::Uncompress::UnLzf 2.043 ;';
+   eval ' use IO::Uncompress::UnLzma 2.043 ;';
+   eval ' use IO::Uncompress::UnXz 2.043 ;';
 }
 
 sub new
@@ -60,7 +60,7 @@ sub anyuncompress
 
 sub getExtraParams
 {
-    use IO::Compress::Base::Common 2.042 qw(:Parse);
+    use IO::Compress::Base::Common 2.043 qw(:Parse);
     return ( 'RawInflate' => [1, 1, Parse_boolean,  0] ,
              'UnLzma'     => [1, 1, Parse_boolean,  0] ) ;
 }
index 7747bfe..988f22e 100644 (file)
@@ -9,12 +9,12 @@ our (@ISA, $VERSION, @EXPORT_OK, %EXPORT_TAGS);
 @ISA    = qw(Exporter IO::File);
 
 
-$VERSION = '2.042';
+$VERSION = '2.043';
 
 use constant G_EOF => 0 ;
 use constant G_ERR => -1 ;
 
-use IO::Compress::Base::Common 2.042 ;
+use IO::Compress::Base::Common 2.043 ;
 
 use IO::File ;
 use Symbol;
@@ -1001,6 +1001,8 @@ sub gotoNextStream
 
     *$self->{NewStream} = 0 ;
     *$self->{EndStream} = 0 ;
+    *$self->{CompressedInputLengthDone} = undef ;
+    *$self->{CompressedInputLength} = undef ;
     $self->reset();
     *$self->{UnCompSize}->reset();
     *$self->{CompSize}->reset();
index 8b47ce3..d33b320 100644 (file)
@@ -4,15 +4,15 @@ use strict ;
 use warnings;
 use bytes;
 
-use IO::Compress::Base::Common 2.042 qw(:Status createSelfTiedObject);
+use IO::Compress::Base::Common 2.043 qw(:Status createSelfTiedObject);
 
-use IO::Uncompress::Base 2.042 ;
-use IO::Uncompress::Adapter::Bunzip2 2.042 ;
+use IO::Uncompress::Base 2.043 ;
+use IO::Uncompress::Adapter::Bunzip2 2.043 ;
 
 require Exporter ;
 our ($VERSION, @ISA, @EXPORT_OK, %EXPORT_TAGS, $Bunzip2Error);
 
-$VERSION = '2.042';
+$VERSION = '2.043';
 $Bunzip2Error = '';
 
 @ISA    = qw( Exporter IO::Uncompress::Base );
@@ -40,7 +40,7 @@ sub getExtraParams
 {
     my $self = shift ;
 
-    use IO::Compress::Base::Common 2.042 qw(:Parse);
+    use IO::Compress::Base::Common 2.043 qw(:Parse);
     
     return (
             'Verbosity'     => [1, 1, Parse_boolean,   0],
index 79542e5..3129064 100644 (file)
@@ -9,12 +9,12 @@ use strict ;
 use warnings;
 use bytes;
 
-use IO::Uncompress::RawInflate 2.042 ;
+use IO::Uncompress::RawInflate 2.043 ;
 
-use Compress::Raw::Zlib 2.042 qw( crc32 ) ;
-use IO::Compress::Base::Common 2.042 qw(:Status createSelfTiedObject);
-use IO::Compress::Gzip::Constants 2.042 ;
-use IO::Compress::Zlib::Extra 2.042 ;
+use Compress::Raw::Zlib 2.043 qw( crc32 ) ;
+use IO::Compress::Base::Common 2.043 qw(:Status createSelfTiedObject);
+use IO::Compress::Gzip::Constants 2.043 ;
+use IO::Compress::Zlib::Extra 2.043 ;
 
 require Exporter ;
 
@@ -28,7 +28,7 @@ Exporter::export_ok_tags('all');
 
 $GunzipError = '';
 
-$VERSION = '2.042';
+$VERSION = '2.043';
 
 sub new
 {
@@ -47,7 +47,7 @@ sub gunzip
 
 sub getExtraParams
 {
-    use IO::Compress::Base::Common  2.042 qw(:Parse);
+    use IO::Compress::Base::Common  2.043 qw(:Parse);
     return ( 'ParseExtra' => [1, 1, Parse_boolean,  0] ) ;
 }
 
index 597cd24..7451fe5 100644 (file)
@@ -5,15 +5,15 @@ use strict ;
 use warnings;
 use bytes;
 
-use IO::Compress::Base::Common  2.042 qw(:Status createSelfTiedObject);
-use IO::Compress::Zlib::Constants 2.042 ;
+use IO::Compress::Base::Common  2.043 qw(:Status createSelfTiedObject);
+use IO::Compress::Zlib::Constants 2.043 ;
 
-use IO::Uncompress::RawInflate  2.042 ;
+use IO::Uncompress::RawInflate  2.043 ;
 
 require Exporter ;
 our ($VERSION, @ISA, @EXPORT_OK, %EXPORT_TAGS, $InflateError);
 
-$VERSION = '2.042';
+$VERSION = '2.043';
 $InflateError = '';
 
 @ISA    = qw( Exporter IO::Uncompress::RawInflate );
index b091a6c..078eeec 100644 (file)
@@ -5,16 +5,16 @@ use strict ;
 use warnings;
 use bytes;
 
-use Compress::Raw::Zlib  2.042 ;
-use IO::Compress::Base::Common  2.042 qw(:Status createSelfTiedObject);
+use Compress::Raw::Zlib  2.043 ;
+use IO::Compress::Base::Common  2.043 qw(:Status createSelfTiedObject);
 
-use IO::Uncompress::Base  2.042 ;
-use IO::Uncompress::Adapter::Inflate  2.042 ;
+use IO::Uncompress::Base  2.043 ;
+use IO::Uncompress::Adapter::Inflate  2.043 ;
 
 require Exporter ;
 our ($VERSION, @ISA, @EXPORT_OK, %EXPORT_TAGS, %DEFLATE_CONSTANTS, $RawInflateError);
 
-$VERSION = '2.042';
+$VERSION = '2.043';
 $RawInflateError = '';
 
 @ISA    = qw( Exporter IO::Uncompress::Base );
index a782b62..acab6b9 100644 (file)
@@ -9,14 +9,14 @@ use warnings;
 use bytes;
 
 use IO::File;
-use IO::Uncompress::RawInflate  2.042 ;
-use IO::Compress::Base::Common  2.042 qw(:Status createSelfTiedObject);
-use IO::Uncompress::Adapter::Inflate  2.042 ;
-use IO::Uncompress::Adapter::Identity 2.042 ;
-use IO::Compress::Zlib::Extra 2.042 ;
-use IO::Compress::Zip::Constants 2.042 ;
+use IO::Uncompress::RawInflate  2.043 ;
+use IO::Compress::Base::Common  2.043 qw(:Status createSelfTiedObject);
+use IO::Uncompress::Adapter::Inflate  2.043 ;
+use IO::Uncompress::Adapter::Identity 2.043 ;
+use IO::Compress::Zlib::Extra 2.043 ;
+use IO::Compress::Zip::Constants 2.043 ;
 
-use Compress::Raw::Zlib  2.042 qw(crc32) ;
+use Compress::Raw::Zlib  2.043 qw(crc32) ;
 
 BEGIN
 {
@@ -31,7 +31,7 @@ require Exporter ;
 
 our ($VERSION, @ISA, @EXPORT_OK, %EXPORT_TAGS, $UnzipError, %headerLookup);
 
-$VERSION = '2.042';
+$VERSION = '2.043';
 $UnzipError = '';
 
 @ISA    = qw(Exporter IO::Uncompress::RawInflate);
@@ -64,7 +64,7 @@ sub unzip
 
 sub getExtraParams
 {
-    use IO::Compress::Base::Common  2.042 qw(:Parse);
+    use IO::Compress::Base::Common  2.043 qw(:Parse);
 
     
     return (
@@ -665,12 +665,6 @@ sub _readZipHeader($)
         my $LzmaPropertyData;
         $self->smartReadExact(\$LzmaPropertyData, $LzmaPropertiesSize)
                 or return $self->saveErrorString(undef, "Truncated file");
-        #my $LzmaInfo = unpack ("C", substr($LzmaPropertyData, 0, 1));    
-        #my $LzmaDictSize = unpack ("V", substr($LzmaPropertyData, 1, 4));    
-
-        # Create an LZMA_Alone header 
-        #$self->pushBack($LzmaPropertyData . 
-        #        $uncompressedLength->getPacked_V64());
 
         if (! $streamingMode) {
             *$self->{ZipData}{CompressedLen}->subtract(4 + $LzmaPropertiesSize) ;
@@ -685,8 +679,6 @@ sub _readZipHeader($)
     }
     elsif ($compressedMethod == ZIP_CM_STORE)
     {
-        # TODO -- add support for reading uncompressed
-
         *$self->{Type} = 'zip-stored';
         
         my $obj =
index 13417aa..b5ff655 100644 (file)
@@ -25,7 +25,7 @@ BEGIN
         if eval { require Test::NoWarnings ;  import Test::NoWarnings; 1 };
 
 
-    my $VERSION = '2.042';
+    my $VERSION = '2.043';
     my @NAMES = qw(
                        Compress::Raw::Bzip2
                        Compress::Raw::Zlib
index 2dfa52c..b286802 100644 (file)
@@ -19,7 +19,7 @@ BEGIN {
     $extra = 1
         if eval { require Test::NoWarnings ;  import Test::NoWarnings; 1 };
 
-    plan tests => 77 + $extra ;
+    plan tests => 85 + $extra ;
 
     use_ok('IO::Compress::Zip', qw(:all)) ;
     use_ok('IO::Uncompress::Unzip', qw(unzip $UnzipError)) ;
@@ -38,7 +38,7 @@ sub getContent
 {
     my $filename = shift;
 
-    my $u = new IO::Uncompress::Unzip $filename, Append => 1
+    my $u = new IO::Uncompress::Unzip $filename, Append => 1, @_
         or die "Cannot open $filename: $UnzipError";
 
     isa_ok $u, "IO::Uncompress::Unzip";
@@ -247,6 +247,34 @@ SKIP:
     is $got[2], $content[2], "Got 3nd entry";
 }
 
+{
+    title "RT #72548";
+
+    my $lex = new LexFile my $file1;
+
+    my $blockSize = 1024 * 16;
+
+    my @content = (
+                   'hello',
+                   "x" x ($blockSize + 1)
+                   );
+
+    my $zip = new IO::Compress::Zip $file1,
+                    Name => "one", Method => ZIP_CM_STORE, Stream => 0;
+    isa_ok $zip, "IO::Compress::Zip";
+
+    is $zip->write($content[0]), length($content[0]), "write"; 
+
+    $zip->newStream(Name=> "two", Method => ZIP_CM_STORE);
+    is $zip->write($content[1]), length($content[1]), "write"; 
+
+    ok $zip->close(), "closed";                    
+
+    my @got = getContent($file1, BlockSize => $blockSize);
+
+    is $got[0], $content[0], "Got 1st entry";
+    is $got[1], $content[1], "Got 2nd entry";
+}
 
 SKIP:
 for my $method (ZIP_CM_DEFLATE, ZIP_CM_STORE, ZIP_CM_BZIP2)
index c8b47b6..24d0d50 100644 (file)
@@ -109,6 +109,10 @@ L<Compress::Raw::Zlib> has been upgraded from version 2.042 to version 2.043.
 
 L<Compress::Raw::Bzip2> has been upgraded from version 2.042 to version 2.043.
 
+=item *
+
+L<IO::Compress::Base> has been upgraded from version 2.042 to version 2.043.
+
 =back
 
 =head2 Removed Modules and Pragmata