Skip to content

cannot reproduce "unknown key value(s)" croaking #55

Description

@XSven

perl 5.14.2
IO::Compress 2.206

I am using this function

sub _gunzip_file {
  my ( $filename ) = @_;

  my $gunzip = IO::Uncompress::Gunzip->new( $filename, { Append => 1, MultiStream => 1 } );
  my $buffer = '';
  1 while $gunzip->read( $buffer ) > 0;
  die "gunzip failed: $GunzipError\n" if $GunzipError;

  return $buffer;
}

to gunzip files. Recently the function croaks with the message

Compress::Raw::Zlib::Inflate::new: unknown key value(s) AppendOutput CRC32 ADLER32 at perl5/IO/Uncompress/Adapter/Inflate.pm line 34

Unfortunately until today this happens only once and I was not able to reproduce it even with the same .gz input file that has caused the croaking.

Any idea why it could randomly happen that the key values AppendOutput CRC32 ADLER32 are treated as unknown?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions