Skip to content

fix(pio): Replace 32-bit offset calculation with 64-bit in PIO_extend #8697

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

TreeHunter9
Copy link
Contributor

Replace 32-bit arguments with 64-bit ones to prevent overflow when handling large files (>4GB).
The original implementation incorrectly calculated offsets as 32-bit values, which made it impossible to extend the file via fallocate after it reached 4GB in size.

As I can see, every version with PIO_extend is affected.

Replaces 32-bit arguments with 64-bit equivalents to prevent overflow when handling large files (>4GB).
The original implementation incorrectly calculated offsets as 32-bit values, which made it impossible to extend the file.
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