mirror of
https://github.com/storytold/gridcraft.git
synced 2026-11-28 17:30:24 +01:00
The package checker listed entry names and then opened each part with by_name. zip 9 decodes names not flagged UTF-8 as CP437, and by_name cannot find such a name in its raw-name index, so every lookup scanned and decoded all entries (up to MAX_ENTRIES). A name that does not decode is listed lossy and by_name did not find it at all, and two entries that decode to the same name were both read from the first. zip_names now returns each entry's index with its name, and the validator, the full-calc-on-load check and the relationship check read parts with by_index. The relationship check caches verdicts per entry index.