mirror of https://github.com/borgbackup/borg.git
hashindex: Fix issue with file sizes larger than 2GB.
See: http://librelist.com/browser//attic/2015/1/6/does-attic-have-an-upper-data-size-limit/
This commit is contained in:
parent
df6324b725
commit
4ab4ecc7af
1
CHANGES
1
CHANGES
|
@ -7,6 +7,7 @@ Version 0.15
|
||||||
------------
|
------------
|
||||||
|
|
||||||
(feature release, released on X)
|
(feature release, released on X)
|
||||||
|
- Fix issue with hash index files larger than 2GB.
|
||||||
- Fix Python 3.2 compatibility issue with noatime open() (#164)
|
- Fix Python 3.2 compatibility issue with noatime open() (#164)
|
||||||
- Include missing pyx files in dist files (#168)
|
- Include missing pyx files in dist files (#168)
|
||||||
|
|
||||||
|
|
|
@ -162,7 +162,7 @@ hashindex_read(const char *path)
|
||||||
EPRINTF_PATH(path, "Unknown file header");
|
EPRINTF_PATH(path, "Unknown file header");
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
if(length != sizeof(HashHeader) + _le32toh(header.num_buckets) * (header.key_size + header.value_size)) {
|
if(length != sizeof(HashHeader) + (off_t)_le32toh(header.num_buckets) * (header.key_size + header.value_size)) {
|
||||||
EPRINTF_PATH(path, "Incorrect file length");
|
EPRINTF_PATH(path, "Incorrect file length");
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue