Browse Source

segment entry payload, metadata length: 16bit is enough

guess we will not have much more than size, csize, psize, ctype, clevel.
Thomas Waldmann 2 years ago
parent
commit
5afe94883a
1 changed files with 1 additions and 1 deletions
  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: