Having said #323 was good, I then found an error: b"0" being used where b"\0" is needed. It causes a false corrupt error if a gzipped file includes a filename or comment and also has the header CRC.
To test I re-implemented the CRC from the RFC directly. This confirms that the CRC used in the library is correct.
Having said #323 was good, I then found an error:
b"0"
being used whereb"\0"
is needed. It causes a false corrupt error if a gzipped file includes a filename or comment and also has the header CRC.To test I re-implemented the CRC from the RFC directly. This confirms that the CRC used in the library is correct.