Skip to content

Commit

Permalink
🐛 Avoid panic in liblzma::bufferd::XzEncoder::read
Browse files Browse the repository at this point in the history
  • Loading branch information
ChanTsune committed Nov 4, 2024
1 parent a5f594f commit c8829de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bufread.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ impl<R: BufRead> Read for XzEncoder<R> {
};
self.obj.consume(consumed);

ret.unwrap();
ret?;

// If we haven't ready any data and we haven't hit EOF yet, then we
// need to keep asking for more data because if we return that 0
Expand Down

0 comments on commit c8829de

Please sign in to comment.