Skip to content
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

Gzip::extract stuck in an endless loop #24

Closed
Jakovitz opened this issue Nov 7, 2024 · 2 comments · Fixed by #25
Closed

Gzip::extract stuck in an endless loop #24

Jakovitz opened this issue Nov 7, 2024 · 2 comments · Fixed by #25

Comments

@Jakovitz
Copy link

Jakovitz commented Nov 7, 2024

I managed to download a corrupt .gz file, in which case fread() returns false at some point. This results in an endless loop (using 100% of one core), since the eof will never be reached.

I'm not sure if the same issue exists with bzip.

@sgiehl
Copy link
Member

sgiehl commented Nov 19, 2024

@Jakovitz I've tried to create a fix for this in #25
Would you mind checking if that solves the problem for your corrupted file?

@innocraft-automation innocraft-automation added this to the Current sprint milestone Nov 19, 2024
@Jakovitz
Copy link
Author

Would you mind checking if that solves the problem for your corrupted file?

It did solve it.

@innocraft-automation innocraft-automation removed this from the Current sprint milestone Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants