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

Don't stop reading if fread returns an empty string #20

Merged
merged 1 commit into from
Mar 13, 2024

Conversation

Ziyann
Copy link
Contributor

@Ziyann Ziyann commented Dec 16, 2023

This fixes a premature loop termination on empty string read, which can happen when reading from network streams, leading to packing truncated files silently.

By explicitly checking against "false", the loop will terminate only if fread returns a failure.

Fixes #19 with a minimally invasive change.

This fixes a premature loop termination on empty string read, which can
happen when reading from network streams, leading to packing truncated
files silently.

By explicitly checking against "false", the loop will terminate only if
fread returns a failure.
@phil-davis
Copy link

phil-davis commented Jan 22, 2024

@DeepDiver1975 ping.
I suppose that this repo is still "functioning". Please review.
CI didn't run, I suppose no CI "server" is "linked" to this repo.
And also owncloud/TarStreamer#32

@Ziyann
Copy link
Contributor Author

Ziyann commented Mar 13, 2024

@DeepDiver1975 any chance that you could take a look? Until this is fixed, both Nextcloud and Owncloud has this bug, and people have to keep manually editing the sources after each update, so it'd be great if you could review it :)

@nickvergessen
Copy link

@DeepDiver1975 any chance to create a new release (same for TarStreamer?)

@Ziyann
Copy link
Contributor Author

Ziyann commented May 24, 2024

@DeepDiver1975 same request, please create new releases, so the fixes can be integrated in Nextcloud and Owncloud :)

@DeepDiver1975
Copy link
Owner

done - sorry for the delay

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.

Premature stream termination when fread returns nothing
4 participants