mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-04 23:30:20 +00:00
LibCompess: Add missing state update in DeflateDecompressor::read.
This commit is contained in:
parent
ef7bec6a3b
commit
c4799576ea
Notes:
sideshowbarker
2024-07-19 02:57:55 +09:00
Author: https://github.com/asynts
Commit: c4799576ea
Pull-request: https://github.com/SerenityOS/serenity/pull/3362
Reviewed-by: https://github.com/alimpfard
1 changed files with 2 additions and 0 deletions
|
@ -216,6 +216,8 @@ size_t DeflateDecompressor::read(Bytes bytes)
|
||||||
if (block_type == 0b10) {
|
if (block_type == 0b10) {
|
||||||
CanonicalCode literal_codes, distance_codes;
|
CanonicalCode literal_codes, distance_codes;
|
||||||
decode_codes(literal_codes, distance_codes);
|
decode_codes(literal_codes, distance_codes);
|
||||||
|
|
||||||
|
m_state = State::ReadingCompressedBlock;
|
||||||
new (&m_compressed_block) CompressedBlock(*this, literal_codes, distance_codes);
|
new (&m_compressed_block) CompressedBlock(*this, literal_codes, distance_codes);
|
||||||
|
|
||||||
return read(bytes);
|
return read(bytes);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue