onekey-sec / unblob

Extract files from any kind of container formats
https://unblob.org
Other
2.09k stars 80 forks source link

fix(zip): handle ZIP64 files missing indicators of ZIP64. #867

Closed qkaiser closed 3 weeks ago

qkaiser commented 3 weeks ago

Sometimes large zip files created with 7z are missing indicators that they're ZIP64 (see is_zip64() implementation for details on heuristics we use to detect ZIP64).

Since we can't rely on our heuristics, we simply fallback to ZIP64 if we can't find ZIP32 EOCDs.