1
0
mirror of https://github.com/regular/unbzip2-stream.git synced 2024-11-25 14:16:17 +00:00
unbzip2-stream/test/fixtures/empty.bz2
Stefan Friesel 5273bebcc6 Handle stream CRC of empty streams correctly
streamCRC being null indicates that the last BZ2 stream ended or
none has started yet.
Once in a BZ2 stream, the value needs to be initialized to 0 even
when it contains no blocks to pass the final CRC check.
A completely empty input stream leaves streamCRC at null and
likewise produces an empty output.
2020-03-31 22:04:32 +02:00

14 B