SevenZipExtractor icon indicating copy to clipboard operation
SevenZipExtractor copied to clipboard

Bzip2 archives cannot be extracted

Open rabanti-github opened this issue 4 years ago • 1 comments

It looks like bizp2 archives (.bz2) cannot be extracted at all. I tested the extraction, using the example program:

using (ArchiveFile archiveFile = new ArchiveFile(@"C:\temp\test.txt.bz2"))
            {
                // extract all
                archiveFile.Extract("Output");
            }

The format is guesses as expected as Formats.BZip2 and the number of containing entries are also correct. However, in the method entry.Extract(entry.FileName);, the enclosed files cannot be extracted. The problem occurs in the line 104 of ArchiveFile.cs. The entries do not contain any valid values:

  • dates are displayed as '01.01.0001 00:00:00'
  • CRC is 0
  • FileName is null
  • PackedSize is 0 ... and so on.

The files can be extracted in 7Zip, though. See attached example files as reference exampleArchives.zip

Thank you in advance.

rabanti-github avatar Oct 06 '20 20:10 rabanti-github

thanks for detailed info!

adoconnection avatar Oct 07 '20 10:10 adoconnection