-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Infinite loop writing an empty buffer in write::BzDecoder #96
Comments
naufraghi
added a commit
to naufraghi/bzip2-rs
that referenced
this issue
May 29, 2023
In `write::BzDecoder::try_finish` do not loop if nothing was written Closes trifectatechfoundation#96
rtldg
pushed a commit
to srcwr/bzip2-rs
that referenced
this issue
Mar 15, 2024
In `write::BzDecoder::try_finish` do not loop if nothing was written Closes trifectatechfoundation#96
bjorn3
pushed a commit
to naufraghi/bzip2-rs
that referenced
this issue
Dec 11, 2024
In `write::BzDecoder::try_finish` do not loop if nothing was written Closes trifectatechfoundation#96
fixed by #118 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This minimal example is never returning with the current master (3032f37).
With a similar test case
cargo test
was stuck:Diving into the simpler example traceback the problem seems related to
try_finish
inwrite.rs
, where we are writing an empty buffer forever:Maybe it is sufficient to check if we received some input? Like:
That done
cargo test
works with the added test too.Let me know if you'd like a Pull Request, it's ready on my disk.
The text was updated successfully, but these errors were encountered: