mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 03:07:43 +00:00
LibCompress+AK: Propagate error handling to wrapped streams
This ensures that when a DeflateCompressor stream is cleared of any errors its underlying wrapped streams (InputBitStream/InputMemoryStream) will be cleared as well and wont fail a VERIFY on destruction.
This commit is contained in:
parent
f532421c9c
commit
a955fd4156
3 changed files with 11 additions and 0 deletions
|
@ -116,6 +116,11 @@ public:
|
|||
m_next_byte.clear();
|
||||
}
|
||||
|
||||
bool handle_any_error() override
|
||||
{
|
||||
return m_stream.handle_any_error() || Stream::handle_any_error();
|
||||
}
|
||||
|
||||
private:
|
||||
Optional<u8> m_next_byte;
|
||||
size_t m_bit_offset { 0 };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue