forked from borgbackup/borg
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Chunker: fix wrong EOF assumption[1], check for return type[2]
[1] This worked incidentally because OSes tend to return at least one page worth of data when EOF is not reached. Increasing WINDOW_SIZE beyond the page size might have lead to data loss. [2] If read() of the passed Python object returned something not-bytes, PyBytes_Size returns -1 (ssize_t) which becomes a very larger number for memcpy()s size_t.
- Loading branch information
Showing
2 changed files
with
17 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