LibCompress: Do not verify that zlib & deflate compressors are finished

These compressors will be used by w3c's CompressionStream, which can run
arbitrary JS, and thus never reach their "finish" steps. Let's not crash
the WebContent process if that happens.
This commit is contained in:
Timothy Flynn 2024-11-15 14:22:37 -05:00 committed by Andreas Kling
commit fd15910adf
Notes: github-actions[bot] 2024-11-17 22:22:28 +00:00
2 changed files with 2 additions and 8 deletions

View file

@ -480,10 +480,7 @@ DeflateCompressor::DeflateCompressor(NonnullOwnPtr<LittleEndianOutputBitStream>
m_distance_frequencies.fill(0);
}
DeflateCompressor::~DeflateCompressor()
{
VERIFY(m_finished);
}
DeflateCompressor::~DeflateCompressor() = default;
ErrorOr<Bytes> DeflateCompressor::read_some(Bytes)
{