-
Notifications
You must be signed in to change notification settings - Fork 368
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure we can read a file with no allocations
Due to how we handle trailing 0 in files, if a file has no allocations we will fail correctly reading the Python allocator as currently is 4 bytes, but the last 3 are always 0. If there aren't any other records after it we will incorrectly invalidate all trailing zeroes, which will fail reading the Python allocator. This technically requires a more complex fix, but for now we can make a simple change and make the Python allocator 1 byte, which will not suffer from this problem.
- Loading branch information
Showing
2 changed files
with
27 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters