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

GzipArchive.unarchive wrongMagic for short data #34

Closed
shawnclovie opened this issue May 13, 2022 · 1 comment
Closed

GzipArchive.unarchive wrongMagic for short data #34

shawnclovie opened this issue May 13, 2022 · 1 comment

Comments

@shawnclovie
Copy link

I was use GzipArchive.archive to compress short text like "123".
Then I use GzipArchive.unarchive decompress the data, would throw error "wrongMagic" since input too short - bitReader.bitsLeft >= 33 * 8 in GzipArchive.swift line 81.

@tsolomko
Copy link
Owner

Fixed in 4.8.1.

Thank you for reporting this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants