Skip to content

Extract archive less then 10Kb. #409

Closed

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

Activity

  1. piksel commented on Jan 10, 2020

    @piksel
    Member

    This sounds like a duplicate of #393. Should be fixed by #390.

  2. Numpsy commented on Aug 17, 2020

    @Numpsy
    Contributor

    Think this should be fixed now?

  3. piksel commented on Aug 18, 2020

    @piksel
    Member

    Yeah

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

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