Explorar el 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 hace 2 años
padre
commit
5afe94883a
Se han modificado 1 ficheros con 1 adiciones y 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: