Skip to content

Commit

Permalink
Properly initialize eof_bits, eof_code, and eof_mask for fixed blocks (
Browse files Browse the repository at this point in the history
  • Loading branch information
fintelia authored Dec 1, 2024
1 parent 6710039 commit ef2c31f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/decompress.rs
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,9 @@ impl Decompressor {
for chunk in self.compression.dist_table.chunks_exact_mut(32) {
chunk.copy_from_slice(&FIXED_DIST_TABLE);
}
self.compression.eof_bits = 7;
self.compression.eof_code = 0;
self.compression.eof_mask = 0x7f;
}

self.state = State::CompressedData;
Expand Down

0 comments on commit ef2c31f

Please sign in to comment.