We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe4d5e0 commit 258cf44Copy full SHA for 258cf44
src/deflate/symbol.rs
@@ -203,6 +203,11 @@ impl Decoder {
203
match decoded {
204
0...255 => Symbol::Literal(decoded as u8),
205
256 => Symbol::EndOfBlock,
206
+ 286 | 287 => {
207
+ let message = format!("The value {} must not occur in compressed data", decoded);
208
+ reader.set_last_error(io::Error::new(io::ErrorKind::InvalidData, message));
209
+ Symbol::EndOfBlock // dummy value
210
+ }
211
length_code => {
212
let (base, extra_bits) =
213
unsafe { *LENGTH_TABLE.get_unchecked(length_code as usize - 257) };
0 commit comments