Skip to content

Fix handling of invalid begin/end or overflow#166

Merged
Safihre merged 2 commits intosabnzbd:masterfrom
mnightingale:bugfix/fix_overflow_begin_end
Feb 3, 2026
Merged

Fix handling of invalid begin/end or overflow#166
Safihre merged 2 commits intosabnzbd:masterfrom
mnightingale:bugfix/fix_overflow_begin_end

Conversation

@mnightingale
Copy link
Contributor

Fixes #165

32 bit overflows at ~2GB so it was doing part_size = 0 - 0 + 1 then part_begin = -1

I'm not sure if 32 bit is still a supported platform, if it is direct write shouldn't be allowed because files greater than 2GB could be common.

@Safihre Safihre merged commit c0f2b37 into sabnzbd:master Feb 3, 2026
23 checks passed
@jcfp
Copy link
Member

jcfp commented Feb 4, 2026

Thanks for the fix, the armhf builds are fine now!

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.

[9.3.1] Test failure in test_invalid_size[test_huge_size_1TiB_ypart.yenc] on armhf

3 participants