You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Similar to behavior in #96 but different enough to warrant its own issue. Notably #97 does not fix this problem.
After a decoding error try_finish goes into an infinite loop:
#[test]
fn write_invalid() {
let contents = b"BZh\xfb";
let mut decoder = bzip2::write::BzDecoder::new(Vec::new());
dbg!(decoder.write(&contents[..]));
dbg!(decoder.try_finish());
}
I'm explicitly calling try_finish here to show the problem. But since the Drop implementation calls try_finish this cannot be avoided by not calling try_finish.
The text was updated successfully, but these errors were encountered:
jongiddy
added a commit
to jongiddy/bzip2-rs
that referenced
this issue
Jun 10, 2023
Similar to behavior in #96 but different enough to warrant its own issue. Notably #97 does not fix this problem.
After a decoding error
try_finish
goes into an infinite loop:I'm explicitly calling
try_finish
here to show the problem. But since theDrop
implementation callstry_finish
this cannot be avoided by not callingtry_finish
.The text was updated successfully, but these errors were encountered: