Explorar o código

segment entry payload, metadata length: 16bit is enough

guess we will not have much more than size, csize, psize, ctype, clevel.
Thomas Waldmann %!s(int64=2) %!d(string=hai) anos
pai
achega
5afe94883a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/borg/repoobj.py

+ 1 - 1
src/borg/repoobj.py

@@ -5,7 +5,7 @@ from .compress import Compressor, LZ4_COMPRESSOR, get_compressor
 
 
 class RepoObj:
-    meta_len_hdr = Struct("<I")
+    meta_len_hdr = Struct("<H")  # 16bit unsigned int
 
     @classmethod
     def extract_crypted_data(cls, data: bytes) -> bytes: