Skip to content

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.
@dyemanov dyemanov merged commit 391b900 into FirebirdSQL:master Aug 19, 2025
23 checks passed
@TreeHunter9 TreeHunter9 deleted the master-pio-extend-64bit-fix branch August 20, 2025 06:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants