소스 검색

segment entry payload, metadata length: 16bit is enough

guess we will not have much more than size, csize, psize, ctype, clevel.
Thomas Waldmann 2 년 전
부모
커밋
5afe94883a
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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: