Skip to content

Extract archive less then 10Kb. #409

@olnistratov

Description

@olnistratov

Steps to reproduce

  1. Create sample project that can create .tar.gz archive and extract from it. I used examples from
    https://github.com/icsharpcode/SharpZipLib/wiki/GZip-and-Tar-Samples#-simple-full-extract-from-a-tgz-targz
    https://github.com/icsharpcode/SharpZipLib/wiki/GZip-and-Tar-Samples#-create-a-tgz-targz
  2. Create test file less than 10Kb. I created .txt file with some data.
  3. Create tar.gz archive
  4. Try to extract from created archive.

Expected behavior

The archive will be extracted.

Actual behavior

There is an error on extraction:

ICSharpCode.SharpZipLib.GZip.GZipException: 'Error GZIP header, first magic byte doesn't match'

Version of SharpZipLib

I used SharpZipLib version 1.2.0
FileLess10Kb.zip

  • Package installed using NuGet

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions