From c4799576ea45ec050689f2f0449a13423790ef84 Mon Sep 17 00:00:00 2001 From: asynts Date: Mon, 31 Aug 2020 11:33:18 +0200 Subject: [PATCH] LibCompess: Add missing state update in DeflateDecompressor::read. --- Libraries/LibCompress/Deflate.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Libraries/LibCompress/Deflate.cpp b/Libraries/LibCompress/Deflate.cpp index 6a464f5758..32ace6758a 100644 --- a/Libraries/LibCompress/Deflate.cpp +++ b/Libraries/LibCompress/Deflate.cpp @@ -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);