Skip to content

Commit

Permalink
Merge pull request #867 from onekey-sec/fix-zip64-handler
Browse files Browse the repository at this point in the history
fix(zip): handle ZIP64 files missing indicators of ZIP64.
  • Loading branch information
qkaiser authored Jun 10, 2024
2 parents 9df71b6 + 7a7780d commit 07e4c93
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion unblob/handlers/archive/zip.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,8 @@ def calculate_chunk(self, file: File, start_offset: int) -> Optional[ValidChunk]
if offset == end_of_central_directory_offset:
break
else:
raise InvalidInputFormat("Missing EOCD record header in ZIP chunk.")
# if we can't find 32bit ZIP EOCD, we fall back to ZIP64
end_of_central_directory = self._parse_zip64(file, start_offset, offset)

has_encrypted_files = self.has_encrypted_files(
file, start_offset, end_of_central_directory
Expand Down

0 comments on commit 07e4c93

Please sign in to comment.