mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-12 19:19:30 +00:00
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:
parent
355ce72c06
commit
fd15910adf
Notes:
github-actions[bot]
2024-11-17 22:22:28 +00:00
Author: https://github.com/trflynn89
Commit: fd15910adf
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2370
2 changed files with 2 additions and 8 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue