You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Per RFC-1951, the non-compressed block has 16-bit lengths, instead of 8-bit.
Then read_non_compressed_block should consume 8-bit instead of 16-bit lengths,
Also, the read_next_byte function makes a wrong byte alignment, as offset calculation is wrong.
The text was updated successfully, but these errors were encountered:
Considering an example ASCII text file of 4 bytes (octets) with contents "1234", its gunzip compressed blocks (per RFC-1952) is composed of the following byte sequence (hexadecimal): 01 04 00 FB FF 31 32 33 34 [CRC-32] 04 00 00 00
First byte 0x01 has BFINAL=1 and BTYPE=00b as expected for a single/last-block without compression. Higher 5 bits are skipped for byte alignment.
Per RFC-1951, the non-compressed block has 16-bit lengths, instead of 8-bit.
Then read_non_compressed_block should consume 8-bit instead of 16-bit lengths,
Also, the read_next_byte function makes a wrong byte alignment, as offset calculation is wrong.
The text was updated successfully, but these errors were encountered: