Commit 391b900
fix(pio): Replace 32-bit offset calculation with 64-bit in
* fix(pio): Correct 32-bit offset calculation in PIO_extend
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.
* refactor(pio): Add distinct variables for offset and length
---------
Co-authored-by: Artyom Ivanov <artyom.ivanov@red-soft.ru>PIO_extend (#8697)1 parent 58d28af commit 391b900
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
323 | 323 | | |
324 | 324 | | |
325 | 325 | | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
326 | 329 | | |
327 | 330 | | |
328 | 331 | | |
329 | | - | |
| 332 | + | |
330 | 333 | | |
331 | 334 | | |
332 | 335 | | |
| |||
0 commit comments