Skip to content

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

Merged
DeepDiver1975 merged 1 commit into
DeepDiver1975:masterfrom
Ziyann:master
Mar 13, 2024
Merged

Don't stop reading if fread returns an empty string#20
DeepDiver1975 merged 1 commit into
DeepDiver1975:masterfrom
Ziyann:master

Conversation

@Ziyann

@Ziyann Ziyann commented Dec 16, 2023

Copy link
Copy Markdown
Contributor

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

phil-davis commented Jan 22, 2024

Copy link
Copy Markdown

@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

Ziyann commented Mar 13, 2024

Copy link
Copy Markdown
Contributor Author

@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
Copy Markdown

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

@Ziyann

Ziyann commented May 24, 2024

Copy link
Copy Markdown
Contributor Author

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

@DeepDiver1975

Copy link
Copy Markdown
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