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

Fix EOF handling of __archive_read_ahead #2196

Merged
merged 1 commit into from
Jun 2, 2024

Conversation

stoeckmann
Copy link
Contributor

Reaching EOF for first time sets the correct amount of available bytes, but each subsequent call returns 0.

Do not forget that the copy buffer can already contain data and return the amount of bytes left in there.

See added test case.

Reaching EOF for first time sets the correct amount of available
bytes, but each subsequent call returns 0.

Do not forget that the copy buffer can already contain data and
return the amount of bytes left in there.

See added test case.
@kientzle
Copy link
Contributor

kientzle commented Jun 2, 2024

Nice fix! Thank you for the careful test case.

@kientzle kientzle merged commit 1aafde5 into libarchive:master Jun 2, 2024
20 checks passed
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.

None yet

2 participants