Closed shawnclovie closed 2 years ago
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.
bitReader.bitsLeft >= 33 * 8
Fixed in 4.8.1.
Thank you for reporting this issue.
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.