Skip to content

Commit b6937c5

Browse files
committed
gh-51067: Use io.DEFAULT_BUFFER_SIZE in no-sig DD scan
Consistent with the other _ZipRepacker scanners.
1 parent d339b6c commit b6937c5

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Lib/zipfile/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1742,7 +1742,8 @@ def _scan_data_descriptor(self, fp, offset, end_offset, zip64):
17421742

17431743
return None
17441744

1745-
def _scan_data_descriptor_no_sig(self, fp, offset, end_offset, zip64, chunk_size=8192):
1745+
def _scan_data_descriptor_no_sig(self, fp, offset, end_offset, zip64,
1746+
chunk_size=io.DEFAULT_BUFFER_SIZE):
17461747
dd_fmt = '<LQQ' if zip64 else '<LLL'
17471748
dd_size = struct.calcsize(dd_fmt)
17481749

0 commit comments

Comments
 (0)