LibCompess: Add missing state update in DeflateDecompressor::read.

This commit is contained in:
asynts 2020-08-31 11:33:18 +02:00 committed by Andreas Kling
parent ef7bec6a3b
commit c4799576ea
Notes: sideshowbarker 2024-07-19 02:57:55 +09:00

View file

@ -216,6 +216,8 @@ size_t DeflateDecompressor::read(Bytes bytes)
if (block_type == 0b10) {
CanonicalCode literal_codes, distance_codes;
decode_codes(literal_codes, distance_codes);
m_state = State::ReadingCompressedBlock;
new (&m_compressed_block) CompressedBlock(*this, literal_codes, distance_codes);
return read(bytes);