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

[bep52|bep47] Fix file ordering sanity check and padding for empty files #612

Merged
merged 1 commit into from
Jan 29, 2023

Conversation

alanmcgovern
Copy link
Owner

@alanmcgovern alanmcgovern commented Jan 29, 2023

When torrents contain multiple sequential empty files, ensure padding data is applied to the closest non-empty file, rather than simply the closest file.

Torrents can be created with empty files in them. When this
occurs, we have to be careful how padding files are assigned
to the first 'real' non-empty file, i.e. don't adding padding
to empty files.
@alanmcgovern alanmcgovern changed the title [bep52] Fix file ordering sanity check and padding for empty files [bep52|bep47] Fix file ordering sanity check and padding for empty files Jan 29, 2023
@alanmcgovern alanmcgovern merged commit c5aa7be into master Jan 29, 2023
@alanmcgovern alanmcgovern deleted the fix-padding-with-empty-files branch January 29, 2023 16:27
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.

1 participant