Discovery: offset bit 32 enables archives >64 GiB (levels.rpf) #25
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
research
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/nineforge0--forge9#25
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@nineforge0 on GitHub · 2026-11-27 18:36 UTC · original
The 24-byte record flags field carries the 33rd bit of the offset
Archives larger than 64 GiB (such as levels.rpf at 70.9 GiB) previously failed with "no table records recovered" because the 32-bit offset field overflows at 4 GiB × 16 = 64 GiB.
Finding
Bit 0 of the
flagsword in the 24-byte TOC record is not a flag — it is the 33rd bit of the offset:Result
Code
src/rpf9/entry.rs—decode()andencode_location()No other public tool documents this. The common workaround is payload carving, which misses the TOC structure entirely.