Files
romm/backend/utils
Sam Dornan dcfb96aacf fix(hashing): read zips zipfile can't decode through 7zz
Python's zipfile only decodes Stored, Deflate, bzip2, LZMA and (via the
inflate64 patch) Deflate64. A zip written with PPMd, zstd, xz, AES or the
legacy Implode family raised NotImplementedError, which the scanner turned
into "hash the container instead". Those hashes match no ROM database, so
the ROM could never be verified against Hasheous.

The zip reader now opens each eligible entry once up front. If zipfile has
no decoder for any of them, the whole archive is read through the existing
7zz-backed reader, which handles every method the zip spec allows. Falling
back for the whole archive rather than per member keeps a stored .cue next
to a PPMd .bin from being streamed twice into the composite hash. Excluded
members do not influence the decision.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-05 08:41:25 -05:00
..
2025-09-04 11:17:00 -03:00
2026-08-01 14:52:55 -04:00
2026-06-28 21:48:50 -04:00
2026-07-06 22:17:56 -04:00