1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2025-02-25 23:43:49 +00:00

fix bug in obfuscated data upgrade code

This commit is contained in:
Thomas Waldmann 2023-01-30 03:09:16 +01:00
parent f9078ebfa9
commit 9740767449
No known key found for this signature in database
GPG key ID: 243ACFA951F78E01

View file

@ -129,7 +129,7 @@ def upgrade_zlib_and_level(meta, data):
borg1_header_fmt = Struct(">I")
hlen = borg1_header_fmt.size
csize_bytes = data[2 : 2 + hlen]
csize = borg1_header_fmt.unpack(csize_bytes)
csize = borg1_header_fmt.unpack(csize_bytes)[0]
compressed = data[2 + hlen : 2 + hlen + csize]
meta, compressed = upgrade_zlib_and_level(meta, compressed)
meta["psize"] = csize