1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 02:47:35 +00:00

LibCompress: Handle and propagate stream errors in GzipDecompressor

This commit makes read short-circuit if its input stream errored,
as well as propagate error handling to wrapped sub streams, similarly
to DeflateDecompressor.
This commit is contained in:
Idan Horowitz 2021-03-16 15:20:46 +02:00 committed by Andreas Kling
parent ea5f83616e
commit eb343296ce
2 changed files with 12 additions and 0 deletions

View file

@ -67,6 +67,7 @@ public:
bool discard_or_error(size_t) override;
bool unreliable_eof() const override;
bool handle_any_error() override;
static Optional<ByteBuffer> decompress_all(ReadonlyBytes);
static bool is_likely_compressed(ReadonlyBytes bytes);