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

Ensure that failing fread won't cause a hanging process #25

Merged
merged 3 commits into from
Nov 21, 2024
Merged

Conversation

sgiehl
Copy link
Member

@sgiehl sgiehl commented Nov 19, 2024

Description:

It may happen that for a corrupted file fread may return false, while the file end has not yet been reached.

This PR adds a better handling for that case, so extracting won't get stuck.

fixes #24

@sgiehl sgiehl requested a review from a team November 19, 2024 10:25
src/Bzip.php Show resolved Hide resolved
@sgiehl sgiehl merged commit 3e96938 into master Nov 21, 2024
14 checks passed
@sgiehl sgiehl deleted the dev-18670 branch November 21, 2024 15:00
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 this pull request may close these issues.

Gzip::extract stuck in an endless loop
2 participants