Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extract archive less then 10Kb. #409

Closed
olnistratov opened this issue Jan 9, 2020 · 3 comments
Closed

Extract archive less then 10Kb. #409

olnistratov opened this issue Jan 9, 2020 · 3 comments

Comments

@olnistratov
Copy link

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
@piksel
Copy link
Member

piksel commented Jan 10, 2020

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

@Numpsy
Copy link
Contributor

Numpsy commented Aug 17, 2020

Think this should be fixed now?

@piksel
Copy link
Member

piksel commented Aug 18, 2020

Yeah

@piksel piksel closed this as completed Aug 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants