Skip to content

Commit bec6558

Browse files
authored
Merge pull request #306 from 1c3t3a/fix-panic-on-invalid-lzw
Don't panic if LZW doesn't find an LZW end code
2 parents bec8e49 + edd260f commit bec6558

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

src/decoder/stream.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -186,9 +186,6 @@ impl<R: Read> Read for LZWReader<R> {
186186
}
187187
}
188188
Ok(weezl::LzwStatus::NoProgress) => {
189-
assert_eq!(result.consumed_in, 0);
190-
assert_eq!(result.consumed_out, 0);
191-
assert!(self.reader.buffer().is_empty());
192189
return Err(io::Error::new(
193190
io::ErrorKind::UnexpectedEof,
194191
"no lzw end code found",
6.88 KB
Binary file not shown.

0 commit comments

Comments
 (0)