mirror of https://github.com/borgbackup/borg.git
zlib legacy decompress: call check_fix_size method
so we also have the decompressed size in the metadata.
This commit is contained in:
parent
0cfdf6da91
commit
0ac525bb05
|
@ -445,7 +445,9 @@ class ZLIB_legacy(CompressorBase):
|
|||
meta["clevel"] = 255 # we do not know the compression level
|
||||
meta["csize"] = len(data)
|
||||
try:
|
||||
return meta, zlib.decompress(data)
|
||||
data = zlib.decompress(data)
|
||||
self.check_fix_size(meta, data)
|
||||
return meta, data
|
||||
except zlib.error as e:
|
||||
raise DecompressionError(str(e)) from None
|
||||
|
||||
|
|
Loading…
Reference in New Issue