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

Bugfix: on 32 bit systems files > 4gb #123

Merged
merged 3 commits into from
Apr 23, 2024
Merged

Bugfix: on 32 bit systems files > 4gb #123

merged 3 commits into from
Apr 23, 2024

Conversation

ikatson
Copy link
Owner

@ikatson ikatson commented Apr 23, 2024

There was a bugged narrowing conversion from u64 to usize, which on 32-bit systems caused a logical bug.

If you tried to download a large (> 4gb) file on a 32-bit system, this narrowing conversion would have written fewer bytes than needed, resulting in checksums never validating, and the torrent never fully completing, and being stuck in like 99.96%.

@ikatson ikatson merged commit 0fd7b42 into main Apr 23, 2024
8 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.

1 participant