mirror of
https://github.com/rommapp/romm.git
synced 2026-11-29 18:11:16 +01:00
The zip and tar readers swallowed read failures and returned an empty iterator, which the hashing path can't tell apart from an empty archive: it falls back to hashing the container's raw bytes, so the ROM gets hashes that match no hash database and nothing explains why. Raise ArchiveReadError instead, as the 7z and rar readers already do, so the fallback is logged. Member streaming is now wrapped too, since chunks are consumed outside the reader's error handling and a bad CRC escaped as a raw zipfile error rather than falling back. Fixes #4159 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>