Merge pull request #306 from 1c3t3a/fix-panic-on-invalid-lzw

Don't panic if LZW doesn't find an LZW end code
This commit is contained in:
Aurelia Molzer authored and GitHub committed 2025-11-04 22:22:12 +00:00
commit bec6558aa8
2 files changed
-3

No files matched your search

-3
View File
@@ -186,9 +186,6 @@ impl<R: Read> Read for LZWReader<R> {
}
}
Ok(weezl::LzwStatus::NoProgress) => {
assert_eq!(result.consumed_in, 0);
assert_eq!(result.consumed_out, 0);
assert!(self.reader.buffer().is_empty());
return Err(io::Error::new(
io::ErrorKind::UnexpectedEof,
"no lzw end code found",